Scaling PostgreSQL to power 800M ChatGPT users
1–10 of 145 posts
Re: Scaling PostgreSQL to power 800M ChatGPT users
#2I wonder, is there another popular OLTP database solution that does this better?
> For write traffic, we’ve migrated shardable, write-heavy workloads to sharded systems such as Azure CosmosDB.
> Although PostgreSQL scales well for our read-heavy workloads, we still encounter challenges during periods of high write traffic. This is largely due to PostgreSQL’s multiversion concurrency control (MVCC) implementation, which makes it less efficient for write-heavy workloads. For example, when a query updates a tuple or even a single field, the entire row is copied to create a new version. Under heavy write loads, this results in significant write amplification. It also increases read amplification, since queries must scan through multiple tuple versions (dead tuples) to retrieve the latest one. MVCC introduces additional challenges such as table and index bloat, increased index maintenance overhead, and complex autovacuum tuning.
Re: Scaling PostgreSQL to power 800M ChatGPT users
#3Re: Scaling PostgreSQL to power 800M ChatGPT users
#4Re: Scaling PostgreSQL to power 800M ChatGPT users
#5From what I understand they basically couldn't scale writes in PostgreSQL to their needs and had to offload what they could to Azure's NoSQL database. I wonder, is there another popular OLTP database solution that does this better? > For write traffic, we’ve migrated shardable, write-heavy workloads to sharded systems such as Azure CosmosDB. > Although PostgreSQL scales well for our read-heavy workloads, we still enc…
Re: Scaling PostgreSQL to power 800M ChatGPT users
#6Why does the [Azure PostgreSQL flexible server instance] link point to Chinese Azure?
e: and the link points to en-us at time of writing. I frankly don't see the value in your comment.
Re: Scaling PostgreSQL to power 800M ChatGPT users
#7From what I understand they basically couldn't scale writes in PostgreSQL to their needs and had to offload what they could to Azure's NoSQL database. I wonder, is there another popular OLTP database solution that does this better? > For write traffic, we’ve migrated shardable, write-heavy workloads to sharded systems such as Azure CosmosDB. > Although PostgreSQL scales well for our read-heavy workloads, we still enc…
Tidb should handle it nice. I've wrote 200к inserts / sec for hour in peak. Underlying lsm works better for writes
When did you get your results, might be time to re-evaluate.
Re: Scaling PostgreSQL to power 800M ChatGPT users
#8Re: Scaling PostgreSQL to power 800M ChatGPT users
#9Why does the [Azure PostgreSQL flexible server instance] link point to Chinese Azure?
> Author Bohan Zhang
> Acknowledgements Special thanks to Jon Lee, Sicheng Liu, Chaomin Yu, and Chenglong Hao, who contributed to this post, and to the entire team that helped scale PostgreSQL. We’d also like to thank the Azure PostgreSQL team for their strong partnership.
Re: Scaling PostgreSQL to power 800M ChatGPT users
#10This is why I love Postgres. It can get you to being one of the largest websites before you need to reconsider your architecture just by throwing CPU and disk at it. At that point you can well afford to hire people who are deep experts at sharding etc.