temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Support embedded version of the service

Open mfateev opened this issue 5 years ago • 3 comments

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.

mfateev avatar Apr 12 '20 20:04 mfateev

This is currently possible to do using SQL (MySQL/PostgresSQL/SQLite) as both default and visibility store. Is that what is requested here?

yiminc avatar Oct 29 '22 18:10 yiminc

@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 avatar Jul 24 '24 22:07 brettinternet

@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 avatar Oct 03 '24 23:10 abtinf

@abtinf great job!

yg7001 avatar Nov 25 '24 04:11 yg7001