Home / Companies / dltHub / Blog / Post Details
Content Deep Dive

Streaming Pub/Sub JSON to Cloud SQL PostgreSQL on GCP

Blog post from dltHub

Post Details
Company
Date Published
Author
William Laroche
Word Count
1,255
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

This solution utilizes GCP's Compute Engine to create an autoscaled cluster of workers that pull messages from a Pub/Sub subscription, batch them together, and insert them into a Cloud SQL PostgreSQL database using micro-batch processing. The use of instance templates and instance groups allows for efficient scaling and cost-effectiveness. The code is simple and leverages DLT for schema inference and data load tool (DLT) to bulk insert records into the database. The solution has been benchmarked, showing a minimum throughput capacity of 700 messages/s per worker and a cost of $16.06/mth with a minimum cluster size of 2.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 5 2,723 657 208 +15%
Serverless 3 748 156 81 +34%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.