Support embedded version of the service
For small scale on prem deployments having ability to run Temporal as a library which has only DB as a dependency would be really great.
This is currently possible to do using SQL (MySQL/PostgresSQL/SQLite) as both default and visibility store. Is that what is requested here?
@yiminc Is this possible? Is it documented anywhere or is the only method to do something like running the server on a port like Temporal CLI's implementation?
I would love to see something similar to the way NATS does this by allowing an in-process connection to the server instead of via the loopback:
server, err := server.NewServer(opts)
conn, err := nats.Connect(server.ClientURL(), nats.InProcessServer(server))
Here's a related forum topic: https://community.temporal.io/t/embed-the-temporal-server-in-a-go-application/12914/3
@brettinternet I went through all the dev server code and figured out the basic config needed to get embedded working. See https://github.com/abtinf/temporal-a-day/blob/main/001-all-in-one-hello/main.go
@abtinf great job!