Google Cloud Firestore
<dependency>
<groupId>one.microstream</groupId>
<artifactId>microstream-afs-googlecloud-firestore</artifactId>
<version>08.01.02-MS-GA</version>
</dependency>
Firestore firestore = ...
BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
GoogleCloudFirestoreConnector.Caching(client)
);
EmbeddedStorage.start(fileSystem.ensureDirectoryPath("microstream_storage"));
Configuration
When using external configuration Google Cloud Firestore can be set as follows.
storage-filesystem.googlecloud.firestore.credentials.type=default
storage-filesystem.googlecloud.firestore.database-id=my-database-id
storage-filesystem.googlecloud.firestore.project-id=my-project-id
Supported properties
Property | Description |
---|---|
database-id |
The database ID to use with this Firestore client. |
emulator-host |
The emulator host to use with this Firestore client. |
host |
The service host. |
project-id |
The project ID. If no project ID is set, the project ID from the environment will be used. |
quota-project-id |
The project ID that specifies the project used for quota and billing purposes. |
credentials.type |
The type of the credentials provider. Supported values are:
|
Depending on the amount of data and transactions, charges may apply depending on service usage. Please check with your service provider for details. |