Dart Microservice with Google Cloud Platform
summary
Builds a tiny Dart microservice using Dart shelf with a generated router, packages the app into Docker, pushes to Artifact Registry and deploys to Cloud Run via gcloud. Demonstrates a stateful counter endpoint (resets on restart), hits a hardcoded-port bug early, and notes Cloud Run free tier at 2 million requests and artifact max image size of 5 TB. Deployment workflow is build, docker push, gcloud run deploy; demo works but shows cold-starts and a 60s timeout.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 1:54Talk overview and requirements
- 3:21Why microservices and GCP
- 5:50Why shelf for Dart microservices
- 7:58Creating a shelf project
- 11:57Extending shelf with packages
- 13:22Shelf router generator demo
- 15:25Adding a counter example
- 16:27Building and running locally
- 17:10Deploying to Google Cloud Run
- 21:31Updating and redeploying
- 22:36Conclusion and resources
- 24:27Demo and live feedback app
related talks
48mThe Dart Side of the Moon, the Hidden Face of the Cloud
32mCloud, Dart, and full-stack Flutter
12mPower-up your Flutter app with Google APIs
12mState of Cloud Foundry on Google Cloud Platform
52mGoogle Cloud Platform: Managed VMs unification
42mDart and Flutter and AI, Oh My!
44mSkyrocketing Micronaut microservices into Google Cloud
50mPower of Google Cloud Platform with Spring Cloud GCP - Mark Fisher, João Martins
