Why are NoSQL solutions using Javascript these days for their "SQL"? [closed]
What were the trade offs? Why was js chosen?
Why not another scripting language like Ruby?
MongoDB and Riak both use JS. A lot of other ones are using JS too. Is this just a "follow the crowd" thing?
NoSql document structure is very similar to json. And json is based on a subset of the JavaScript Programming Language Standard. So javascript can manipulate json easily, thus can manipulate nosql document easily. So javascript is used in nosql solutions. That's my understanding.
Makes it quite convenient for calling from Javascript in dynamic web pages.
精彩评论