Fork me on GitHub
#datomic
<
2023-07-10
>
braai engineer08:07:04

What's a nice way to make Datomic (d/connect uri) retry connection until it connects? For some apps the Datomic transactor and the app is running on the same hardware and sometimes the app starts before the transactor is available and I don't see how I can tell that "System Started" has been emitted yet from transactor.

jaret13:07:54

We have a health check endpoint that some folks use for this purpose but the transactor also emits a transactor/start message in the logs. Either way you will want retry implemented.