electric-sql / electric

Sync little subsets of your Postgres data into local apps and services.
https://electric-sql.com
Apache License 2.0
6.11k stars 141 forks source link

Initial load testing #1471

Open balegas opened 2 months ago

balegas commented 2 months ago

Create a testing suite for load-testing the HTTP API. Do initial load testing to find bottlenecks in the system.

thruflo commented 2 months ago

In the Hammer time doc https://electric-sql.slab.com/posts/hammer-time-h8utin6y we have goals to test and demonstrate very low ongoing resource usage and how this is affected by:

With the goal of two headline proof cases as per https://electric-sql.slab.com/posts/a-million-concurrent-users-on-a-single-commodity-postgres-sagtwiv7#h622g-new-simplified-electric:

With this alpha, I would really like to see graphs of these in a benchmarking.md (or a benchmarking.livebook or whatever). And a summary of these graphs in the main readme. The LinearLite example is a useful "look, you can use it" check but what is different and interesting here is the performance and resilience of this simpler re-build.