6

I kind of ended up writing my own version of Redis, just an Express server broadcasting events you send it, when I made my first full-stack project.

Comments
  • 3
    Good for learning :)

    What features did you include, just the pub/sub or the key/value storage?
  • 0
    @Voxera iirc just pub/sub for events including a json payload. The subscribing nodes would use events to keep their data synchronized as far as they needed.
  • 1
    So you used javascript to solve scaling problem and used it as in memory db? Not very clever choice of tech
  • 1
    Sounds like you've implemented a middleware, not created a database. But good for you!
  • 1
    It is an eventbus, with memory persistence.
    Nice!

    Was it memory safe?
  • 1
    @localpost Then its just a pub/sub. Redis is first and most a key value database with some quite advanced scripting and list features.

    Pub/sub is just built on top of the rest ;)

    Still good for learning but actually implementing the db and list/script part is many times more complex than a simple pub/sub.
Add Comment