Periklis Gkolias Posted on Feb 21, 2020 How would you create a web API with streaming input and output (eg stocks monitoring system) without tools like Kafka and Spark? #webdev #discuss #help Top comments (5) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Felipe Marques Felipe Marques Felipe Marques Follow Email felipe.msfg@gmail.com Location Brazil Education Computer Science Work Senior Software Engineer Joined Dec 16, 2019 • Feb 22 '20 Dropdown menu Copy link Hide Maybe using websocket? Or Redis pubsub feature? Collapse Expand Kimmo Sääskilahti Kimmo Sääskilahti Kimmo Sääskilahti Follow ML Software Developer enthusiastic about Python, TypeScript, Scala, machine learning and functional programming. Location Helsinki Education D.Sc. (computational science) Work Lead Software Developer Joined Feb 11, 2019 • Feb 22 '20 Dropdown menu Copy link Hide I also thought first of websockets. gRPC is also worth looking into. Or maybe GraphQL streaming, don't know how that works nowadays. Collapse Expand Periklis Gkolias Periklis Gkolias Periklis Gkolias Follow Location Greece Education Msc Work Software engineer Joined Feb 8, 2018 • Feb 23 '20 Dropdown menu Copy link Hide Websockets sounds a great idea. And it is relatively easy to implement a WS client/server. I have never heard GQL streaming and redis pubsub. Will totally look into Thank you guys Collapse Expand Periklis Gkolias Periklis Gkolias Periklis Gkolias Follow Location Greece Education Msc Work Software engineer Joined Feb 8, 2018 • Feb 24 '20 Dropdown menu Copy link Hide Thank you Nico. Not sure if long polling is a viable option in my book, but I will totally try the rest :) Collapse Expand Matthew Daly Matthew Daly Matthew Daly Follow I'm a professional PHP, Python and Javascript developer from the UK. I've worked with Django, Laravel, and React, among others. I also maintain a legacy Zend 1 application. Location UK Pronouns He/him Work Technical Developer Joined Sep 8, 2018 • Feb 23 '20 Dropdown menu Copy link Hide My first choice would probably be WebSockets, but it might be worth a look at server-sent events for a possible simpler solution. Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (5)
Maybe using websocket? Or Redis pubsub feature?
I also thought first of websockets. gRPC is also worth looking into. Or maybe GraphQL streaming, don't know how that works nowadays.
Websockets sounds a great idea. And it is relatively easy to implement a WS client/server.
I have never heard GQL streaming and redis pubsub. Will totally look into
Thank you guys
Thank you Nico. Not sure if long polling is a viable option in my book, but I will totally try the rest :)
My first choice would probably be WebSockets, but it might be worth a look at server-sent events for a possible simpler solution.