Settings

Theme

Show HN: Petri – Drop-in Postgres image that forks a DB per test

github.com

4 points by nizarmah a month ago · 0 comments · 1 min read

Reader

Rolling it out at work to parallelize 4,257 tests across 5 services. It fixes our tests running in band and DB mocking in API tests.

It's a drop-in Postgres image, with a Golang proxy. :5432 is passthrough, :5433 forks the DB per conn (CREATE DATABASE … TEMPLATE …, dropped on disconnect).

If you use it, let me know what you like or don't like, so I can make it better. Cheers!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection