Integrating Bluzelle Cache

Pavel Bains
The Blueprint by Bluzelle

--

When developing disruptive products, one of the biggest challenges faced is the friction created when bringing on customers. This is especially true when targeting software developers; people are familiar with the tools and services they have been using. As we roll out our data cache solution, one of the major objectives is that it needs to be very simple for the customer to implement and use.

When speaking with developers about new tools, two comments always come up:

“We are already using MongoDB (Redis, DynamoDB, or any other database), do I have to do something different?”

“We are continuously improving our game, I don’t want to tie up my team with dealing with IT issues, DevOps, learning new technologies, and taking up resources.”

The video below shows how easy it is for a developer to get going with Bluzelle in two ways:

  1. There is nothing to switch out, replace or remove. Bluzelle is added as an optional enhancement to your new or existing code. If you have a game already or are building one, you have NO need to rethink its design when you are considering Bluzelle. Bluzelle works with every type of database. Bluzelle accelerates what is already there, to a SUBSTANTIAL level and does not require any design changes.
  2. Demonstrate just how simple it is to use Bluzelle. The video shows there is ONE line of code to do a read and ONE line of code to do a write. This is less than 5 minutes of work. Nothing more.

To get started with Bluzelle, remember to install Bluzelle JS library first if you haven’t done so.

npm install bluzelle

Here we are using a Cache Aside pattern. If the data exists in Bluzelle (a cache hit), it will retrieve data from Bluzelle Cache directly. Otherwise (a cache miss), it will request the data from the server. Therefore, we just need to insert this line in your client, just before you talk to your server:

getBZConnection(idx).quickread(id)

You also need to insert this line on your database middleware, so that data can be updated to Bluzelle Cache after requesting the database server.

withCache && bluzelleSet(id, profile);

Summary

Making infrastructure technology easy to implement is quite the challenge. We’re happy that our team was able to make it simple. We looked to products like Cloudflare, whose carrying card was that it was extremely easy to integrate into a website.

Coming out next will be a video showing how our decentralized data cache performs better than the existing competition of centralized solutions.

If you find this article useful, please give it some claps 👏👏👏

--

--

Pavel Bains
The Blueprint by Bluzelle

CEO Bluzelle. WEF Tech Pioneer 2017. Futurist, Writer for Fast Company, Forbes, Coindesk. “The Revolution Will Not Be Televised.”