You could run it in a lambda today, but there's a few caveats:
- It's single-writer, so only one lambda at a time will be able to access the db
- Background work like compaction and gc should really run in a long-lived process.
That said, we have some work in the pipe to support (see
https://github.com/slatedb/slatedb/pull/278):
- multiple concurrent read-only processes, so you can have lots of concurrent reads from different lambda invocations
- single runs of the GC loop so you could schedule that to run periodically from a lambda as well