Bluzelle Heroku Example Chat Application
The Bluzelle Heroku Example Chat application is a simple nodejs project that utilizes the Bluzelle database, socket.io and expressjs
- Heroku CLI
$ Heroku login
- Once you've logged into Heroku with the Heroku CLI, you can now install the add-on to your Heroku Application (where APPLICATION_NAME is the name of your Heroku Application)
$ Heroku addons:create bluzelledb:test -a APPLICATION_NAME
- If everything went smoothly and the add-on installed properly, you will find 3 Config Variables (In your Heroku Application Dashboard, under the settings tab, you should see Config Vars. If you Click on "Reveal Vars", you will see 3 Config Variables that the Bluzelle Add-on had set, BLUZELLEDB_ADDRESS, BLUZELLEDB_PORT, and BLUZELLEDB_UUID)
There are a couple of challenges with this application architecture.
Messages are appended to each value entry in the database. Once the value entry hit the buffer limit (300 KB), then it will error out. Solution: utilize different uuids
Even though it's using socket.io, this is not "completely" real-time polling. The sockets initializes via HTTPS then "promotes" to sockets. Keep in mind that some browsers will not support this.
If you need help setting up the application to use our service, ask us at gitter: