News for hackers. Stuff that matters.
Re:Moving persistent data out of Redis by virmundi on Tuesday January 10, 2017 @02:47PM (#13368265)
Watch how far you generalize that view. I realize that "I can do everything with a single...language" can make "everything" mean anything. I had a coworker that helped a middle eastern country with security software. He went full Javascript on it: Node, Mongo, etc. It worked. JS did everything. While he didn't go into details, afterwards he thought it was a bad idea. A great learning experience on when to define "everything" properly as well as what is outside of it.
Re:Moving persistent data out of Redis by antirez on Tuesday January 10, 2017 @03:56PM (#13368910)
Yes I totally agree that like most "rules on software" there is the need to be judicious enough to know when to follow the rule is not a good idea... However I more often see the contrary, of adding a multitude of systems together without very strong reasons.
Re:Moving persistent data out of Redis by ohstopitu on Tuesday January 10, 2017 @03:13PM (#13368509)
just wondering why Mongo is considered a part of "JS". Is it because of the MEAN stack?
Re:Moving persistent data out of Redis by virmundi on Tuesday January 10, 2017 @04:08PM (#13368998)
Part of it is JSON as the storage format. Another part is its Node driver. The whole API fit it well. It understood async programming. It felt JS-like. The input and output were JSON instances. Finally, yea, from what I know of him "web scale" did play part in the decision. Oh those heady days.
Re:Moving persistent data out of Redis by secoif on Wednesday January 11, 2017 @05:52AM (#13373076)
For data that's mostly to do with the the API provided by the particular mongodb driver, than mongodb itself. Mongo stores and transmits BSON, not JSON. Most mongo drivers expose an API that serialises your data to BSON for writes and wraps the BSON data with a JSON-like interface for reads.
Re:Moving persistent data out of Redis by sandGorgon on Wednesday January 11, 2017 @06:53AM (#13373293)
postgresql has the jsonb column type which is just as powerful as mongo
Re:Moving persistent data out of Redis by nine_k on Tuesday January 10, 2017 @03:18PM (#13368560)
Possibly because of JSON as the storage format.
Re:Moving persistent data out of Redis by koolba on Tuesday January 10, 2017 @03:24PM (#13368620)
Because of JSON and "web scale".