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?
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.
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.