Akka Http and consuming a response of "application/stream+json" type

13 views
Skip to first unread message

Michael Kohout

unread,
Mar 26, 2018, 4:18:30 PM3/26/18
to Akka User List
Hi All-

I'm writing an application that must consume from a HTTP endpoint that publishes a streaming response(the source app is using project reactor/spring webflux).

I don't see any docs in the Akka-HTTP project that seem to map to my use case.  Does anyone know if it's possible to use akka http's Http class to handle this response?

thanks
Mike

Konrad “ktoso” Malawski

unread,
Mar 26, 2018, 11:57:28 PM3/26/18
to akka...@googlegroups.com, Michael Kohout
Hi Michael,
I assume your question is about how to get a Source[MyType] from such streamed incoming entity?
The streaming and backpressure itself is “always on”, so the missing bit is the marshalling — you are right we didn’t document it very well,
so I went ahead and added the docs: https://github.com/akka/akka-http/pull/1964 

Hope this helps! Let me know if I missed the point of the question; Please feel free to review the above PR with docs as well of course.
Happy hakking

PS: New discussion forum is located at https://discuss.akka.io/ replacing akka-user google-group soon, recommend asking over there next time.

-- 
Cheers,
Konrad 'ktoso' Malawski
--
*****************************************************************************************************
** New discussion forum: https://discuss.akka.io/ replacing akka-user google-group soon.
** This group will soon be put into read-only mode, and replaced by discuss.akka.io
** More details: https://akka.io/blog/news/2018/03/13/discuss.akka.io-announced
*****************************************************************************************************
>>>>>>>>>>
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages