Docker compose How to run local pubsub inside docker? Here is a docker compose file that will: pull in the google/cloud-sdk:emulators image initialize the project with id test-project-id create topic with name test-v1-topic create subscription with name test-v1-subscription version: '3.8' services: pubsub-emulator: image: google/cloud-sdk:emulators container_name: pubsub-emulator ports: - "8085:8085" command: gcloud beta emulators pubsub start … Continue reading Local pubsub emulator via docker compose && Spring Boot
Category: GCP
Distributed lock on GCP Datastore
So, I needed a distributed lock on the GCP Datastore. In theory, it is all very simple: Get the lockDo what you need to doRelease the lock And, when I started thinking about it, it became clear that I need to have some kind of transaction mechanism in order to obtain the lock. Basically, when … Continue reading Distributed lock on GCP Datastore