Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Untuk menyimpan data dan file di App Engine, Anda dapat menggunakan layanan Google Cloud
atau layanan penyimpanan lain yang didukung oleh bahasa Anda dan
dapat diakses dari instance App Engine Anda. Database pihak ketiga
dapat dihosting di penyedia cloud lain,
dihosting secara lokal, atau dikelola oleh vendor pihak ketiga.
Aplikasi App Engine dapat terhubung ke database eksternal yang dihosting di
cloud publik lain asalkan server database tersebut dan firewall Anda
sudah dikonfigurasi dengan benar untuk menerima koneksi. Aplikasi App Engine Anda terhubung
melalui Internet menggunakan alamat IP publik layanan eksternal tersebut.
Database yang dikelola oleh vendor pihak ketiga
Ada banyak vendor yang menawarkan layanan database terkelola seperti
mLab untuk MongoDB, Redis Labs menawarkan
penyimpanan cache Redis yang dihosting. Vendor ini menangani
hosting, konfigurasi, dan pemeliharaan database. App Engine dapat
terhubung ke layanan eksternal ini melalui Internet, dengan cara yang sama seperti cloud publik lainnya
menggunakan alamat IP publik layanan tersebut.
Lokal
Jika sudah memiliki database lokal yang ingin diakses oleh aplikasi App Engine, Anda dapat mengonfigurasi jaringan internal dan firewall untuk memberikan database alamat IP publik atau menghubungkannya menggunakan VPN.
Dengan menyiapkan Cloud VPN, aplikasi App Engine Anda dapat mengakses jaringan lokal tanpa mengekspos server database ke internet publik secara langsung. Karena App Engine dan Compute Engine menggunakan infrastruktur jaringan yang sama, Anda dapat menggunakan koneksi VPN untuk membuat koneksi antara aplikasi App Engine dan database lokal Anda menggunakan alamat IP internal server database.
Pertimbangan produksi
App Engine dapat dikonfigurasi untuk menskalakan aplikasi Anda secara otomatis
secara horizontal
berdasarkan berbagai metrik. Tidak seperti aplikasi web, database sering kali
memerlukan perubahan yang sulit untuk merespons skala. Dalam aplikasi produksi,
App Engine dapat dengan cepat membebani database selama lonjakan traffic. Anda
harus memperhitungkan beban dan beban traffic rata-rata yang diperkirakan selama lonjakan dalam
pertimbangan saat mengonfigurasi dan men-deploy database.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-19 UTC."],[[["\u003cp\u003eApp Engine can use Google Cloud storage services like Firestore in Datastore mode, Cloud SQL for MySQL or PostgreSQL, and Cloud Storage for various storage needs.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine apps can connect to external databases hosted on other public clouds, provided the database servers and firewalls are properly configured for connection.\u003c/p\u003e\n"],["\u003cp\u003eThird-party vendor managed databases, such as mLab for MongoDB or Redis Labs for Redis, can be connected to App Engine over the Internet using the service's public IP address.\u003c/p\u003e\n"],["\u003cp\u003eOn-premises databases can be accessed by App Engine apps through either a public IP address or a secure VPN connection, such as Cloud VPN, allowing access to the database server's internal IP address.\u003c/p\u003e\n"],["\u003cp\u003eProduction environments require careful database configuration to handle traffic spikes, as App Engine's automatic horizontal scaling can overwhelm databases if not properly prepared.\u003c/p\u003e\n"]]],[],null,["# Understanding data and file storage\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nTo store data and files on App Engine, you can use Google Cloud services\nor any other storage service that is supported by your language and is\naccessible from your App Engine instance. Third-party databases\ncan be hosted on another cloud provider,\nhosted on premises, or managed by a third-party vendor.\nFor information about reading and writing temporary files, see [Reading and\nWriting Temporary Files](/appengine/docs/standard/using-temp-files).\n\nGoogle Cloud storage services\n-----------------------------\n\nFor App Engine apps running in the standard environment, we recommend\none of the following Google Cloud storage services:\n\n- [Firestore in Datastore mode](/appengine/docs/standard/using-firestore-in-datastore-mode) to store data in a NoSQL database.\n- [Cloud SQL for MySQL](/sql/docs/mysql/connect-app-engine-standard) to store data in a MySQL database.\n- [Cloud SQL for PostgreSQL](/sql/docs/postgres/connect-app-engine-standard) to store data in a PostgreSQL database.\n- [Cloud Storage](/appengine/docs/standard/using-cloud-storage) to read and write files in the runtime environment, as well as [store and serve static files](/appengine/docs/standard/serving-static-files), such as movies or images or other static content.\n\nSee a complete list of the Google Cloud storage products on the\n[Cloud Storage Products page](/products/storage).\n\nOther cloud providers\n---------------------\n\nApp Engine apps can connect to external databases that are hosted on\nother public clouds as long as those database servers and your firewall are\nconfigured properly to accept connections. Your App Engine app connects\nover the Internet using that external service's public IP address.\n\nDatabases managed by a third-party vendor\n-----------------------------------------\n\nThere are many vendors offering managed database services such as\n[mLab](/mongodb) for MongoDB, Redis Labs offers hosted\n[Redis caching](https://redislabs.com/redis-enterprise/cloud/). These vendors handle\nhosting, configuration, and maintenance of databases. App Engine can\nconnect to these external services over the Internet, in the same way as other\npublic clouds by using that service's public IP address.\n\nOn premises\n-----------\n\nIf you have existing on-premises databases that you want to make accessible to\nyour App Engine app, you can either configure your internal\nnetwork and firewall to give the database a public IP address or connect using a\nVPN.\n\nSetting up [Cloud VPN](/network-connectivity/docs/vpn) allows your App Engine\napp to access your on-premises network without directly exposing the\ndatabase server to the public internet. Because App Engine and\nCompute Engine use the same networking infrastructure, you can use the VPN\nconnection to establish a connection between the App Engine app\nand your on-premises database using the database server's internal IP address.\n\nProduction considerations\n-------------------------\n\nApp Engine can be configured to automatically scale your application\n[horizontally](https://wikipedia.org/wiki/Scalability#Horizontal_and_vertical_scaling)\nbased on various metrics. Unlike web applications, databases often\nrequire non-trivial changes to respond to scale. In production applications,\nApp Engine can quickly overwhelm a database during traffic spikes. You\nshould take the anticipated average traffic load and load during spikes into\nconsideration when configuring and deploying databases."]]