Hello guys , are you building
- real time application
- game
- analytical platform
and are you having problem managing all sort of wired realtime stuff ? caching layer , make update , fetch whatever data updated , push them to client blah blah blah……Here is simple solution : RethinkDB.
what is RethinkDB ?
“RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language called ReQL that supports really useful queries like table joins and group by, and is easy to setup and learn”
Some of the appealing features of rethinkDB are…
Simple programming model:
- JSON data model and immediate consistency.
- Distributed joins, subqueries, aggregation, atomic updates.
- Secondary, compound, geospatial, and arbitrarily computed indexes.
- Hadoop-style map/reduce
Easy administration:
- Friendly web and command-line administration tools.
- Takes care of machine failures and network interrupts.
- Multi-datacenter replication and failover.
Horizontal scalability:
- Sharding and replication to multiple nodes.
- Queries are automatically parallelized and distributed.
- Lock-free operation via MVCC concurrency.
Getting Started :
step : 1 Please download rethinkDB from this link for you appropriate OS.
Download Link : http://rethinkdb.com/docs/install/
Step 2 : Start Database server
I have Ubuntu Running on my computer , so i have installed rethinkdb using first out of 3 options from ubuntu option.those options are there listed on link above just copy and paste into your terminal and you are good to go.it will downlad all stuff for you.
if you wish to build from source , you can do it , 3rd option is for that.
after setup is successful , just go to your home folder and type “rethinkdb” into your terminal.
After running this command , it will create “rethinkdb_data” folder into your current folder if not exists otherwise it will not create.please don’t delete this , this folder will contain all of your data and index files that you are going to create and store.
ok you are up and running your rethinkDB server.
step 3 : open your browser and in url field type
it will openup rethinkDB client panel for you. from here you can manage everything as well as you can also create databases , create tables , do CRUD , add more servers create clusters and so so so more that i will post you in my next blog.
Conclusion :
For now , this is it. whats my take on rethinkDB ? if i were to create game server ? analytics database or any real time solution , i would definitely try rethinkDB.
rethinkDB 2.0 stable will be major update and it is coming very soon , thought if you want to try our 2.0 early for just fun and testing purpose , you can go to rethinkdb.com and download and play with it.