Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering RethinkDB

You're reading from   Mastering RethinkDB Master the skills of building real-time apps dramatically easier with open source, scalable database - RethinkDB

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher Packt
ISBN-13 9781786461070
Length 330 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Shahid Shaikh Shahid Shaikh
Author Profile Icon Shahid Shaikh
Shahid Shaikh
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The RethinkDB Architecture and Data Model 2. RethinkDB Query Language FREE CHAPTER 3. Data Exploration Using RethinkDB 4. Performance Tuning in RethinkDB 5. Administration and Troubleshooting Tasks in RethinkDB 6. RethinkDB Deployment 7. Extending RethinkDB 8. Full Stack Development with RethinkDB 9. Polyglot Persistence Using RethinkDB 10. Using RethinkDB and Horizon

Further improvements

There are two key improvements which you can do:

  • Integrating the message broker
  • Developing a distributed transaction

Let's discuss each one in brief.

Integrating the message broker

For now, we are using the EventEmitter class of Node.js to emit and receive events. You can hook advanced message brokers such as RabbitMQ or Apache Kafka. All you need to do is, instead of emitting the event in the Polyglot class, just push the changes in the message broker.

At the consumer end, any program can read it and use it for their use. This way, there will be high cohesion and less tight coupling.

If you are going to do it using RabbitMQ then we have already covered the integration part in Chapter 7, Extending RethinkDB.

Moving right along to the next improvement.

Developing a distributed transaction

For now, we are not using any transaction in between the databases to perform the CRUD operation. Since our databases can be SQL, NoSQL, key-value, graph-based, and so on, and not all databases...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image