Comment by matdehaast
3 hours ago
I'm a bit worried you think instantiating a new client for every request is common practice. If you did that to Postgres or MySQL clients, you would also have degradation in performance.
PHP has created mysqli or PDO to deal with this specifically because of the known issues of it being expensive to recreate client connects per request
Ok your comment made me double check our benchmarking script in Go. Can confirm we didn't instantiate a new client with each request.
For transparency here's the full Golang benchmarking code if you want to replicate it yourself.
Batch transactions:
Individual transactions:
We shared the code with the Tigerbeetle team (who were very nice and responsive), and they didn't raise any issues with our benchmarking code of their Tigerbeetle client.