DEV Community

Periklis Gkolias
Periklis Gkolias

Posted on

How would you create a web API with streaming input and output (eg stocks monitoring system) without tools like Kafka and Spark?

Top comments (5)

Collapse
 
felipemsfg profile image
Felipe Marques

Maybe using websocket? Or Redis pubsub feature?

Collapse
 
ksaaskil profile image
Kimmo Sääskilahti

I also thought first of websockets. gRPC is also worth looking into. Or maybe GraphQL streaming, don't know how that works nowadays.

Collapse
 
perigk profile image
Periklis Gkolias

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
 
perigk profile image
Periklis Gkolias

Thank you Nico. Not sure if long polling is a viable option in my book, but I will totally try the rest :)

Collapse
 
matthewbdaly profile image
Matthew Daly

My first choice would probably be WebSockets, but it might be worth a look at server-sent events for a possible simpler solution.