Leveraging Database Streaming for aggregating data across microservice databases
I’m working on an asset management product that is based on multiple independent underlying financial assets, such as cash, stocks, and certificates of deposit. The product requires an overview of all assets, which are aggregated from the independent databases of each product microservice. Initially, the MVP version was implemented on the client side, but as the dataset grew, this became inefficient, particularly when handling pagination. We also have an ETL pipeline for batch processing, which works well for analytical purposes but is not suitable when customers need to see updated asset information immediately after each transaction. We also handle cases where the accrual value increases due to special events, such as receiving bond coupons or the start of a new savings period. This means the data is sourced not only from the microservice databases but also from external events, which are captured and processed through a materialized view. This view aggregates data from multiple Post
Leveraging Database Streaming for aggregating data across microservice databases Leveraging Database Streaming for aggregating data across microservice databases Nov 8, 2024 I’m working on an asset management product that is based on multiple independent underlying financial assets, such as cash, stocks, and certificates of deposit. The product requires an overview of all assets, which are aggregated from the independent databases of each product microservice. The MVP version was implemented on the client side, but as the dataset grew, this became inefficient, particularly when handling pagina
related reading
- Databases in 2025: A Year in Review // Blog // Andy Pavlo - Carnegie Mellon Universitycs.cmu.edu
- Building data-centric apps with a reactive relational databaseriffle.systems
- Databases in 2024: A Year in Review // Blog // Andy Pavlo - Carnegie Mellon Universitycs.cmu.edu
- Debezium and TimescaleDBdebezium.io
- PostgreSQL CDC - RisingWavedocs.risingwave.com
- The Beginner's Guide to Databasestechnically.substack.com
- Introduction to streaming for data scientistshuyenchip.com
- From monolith to Lakebase to LTAP: rethinking the database from storage up | Databricks Blogdatabricks.com
- Ingest data from self-hosted PostgreSQL | Materialize Documentationmaterialize.com
- Track every PostgreSQL data change using Debezium - DEV Communitydev.to
- S2, the durable stream APIs2.dev
- Streaming ingestion to a materialized view - Amazon Redshiftdocs.aws.amazon.com