datomic 2026-06-23

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

ok, thanks for digging

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. ๐Ÿ˜•

Can you just run a client application?

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

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.

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

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

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