Redis Streams

Use Case

Websocket <-> NodeJS (Backend) <-> Redis Stream <-> C++ (Backend)

Use this program to integrate different middleware. In Sravz Case we use NodeJS backend to interact with C++ backend. NodeJS backend sends messages to C++ backend which process the messages, performs computationally heavy work and sends back the response to NodeJS. NodeJS sends the respons to the web browser on the websockets

Libraries Used

  • C++ Boost ASIO
  • hiredis

Dataflow Diagram

Session 1

  • Covers Boost ASIO based redis streams consumer & producer

Video explanation of the code

C++-Boost-Redis-YouTube

Source Code

comments powered by Disqus