datomic

Joe R. Smith 2026-06-23T19:45:57.826659Z

Iโ€™m using Datomic Cloud with http-direct -> API Gateway. I am using SSE and API Gatewayโ€™s streaming mode, but http-direct doesnโ€™t send anything until it has read the entire :body from the handler. Is incremental / chunked streaming of http-direct responses possible today? Is this something that could be added?

๐Ÿ‘€ 1
Joe R. Smith 2026-06-25T14:59:50.707889Z

sooo, is there a chance? maybe @joe.lane? ๐Ÿ™‚ truth be told, I need this bad enough that the alternative is to migrate to Datomic Pro. ๐Ÿ˜•

Joe Lane 2026-06-25T15:05:40.018609Z

Can you just run a client application?

Joe Lane 2026-06-25T15:08:33.965019Z

I started looking into it on the http-direct side but didn't come to any conclusion yet about the viability. Need to wrap my head around async server contexts and whether this would lead to resource leaks or tie up some internal go-blocks. That being said, we certainly wish this were available from the start from API Gateway, there are definitely advantages and it looks pretty compelling.

๐Ÿ™ 1
Joe R. Smith 2026-06-25T15:37:51.144329Z

Unfortunately, client isn't a solution as I want the colocated query. Thanks for taking a look. An explicit opt-in to streaming might be a safer path.

Joe R. Smith 2026-06-29T20:08:15.590179Z

any new thoughts? I need this functionality for quite a few things and Iโ€m not sure how I can really hack around it.

Joe Lane 2026-06-29T20:39:12.780039Z

I don't think it's in the cards right now

Joe Lane 2026-06-29T20:43:42.245129Z

That section of our code is very servlet-oriented request-response and having just mucked around in there (you'll see this benefit soon) I think it would be a substantial rewrite of our http-direct server code to enable this streaming support.

๐Ÿ˜ž 1