High-Availability Hive API Proxy Announcement

in HiveDevs2 months ago (edited)

What is it?

The project itself isn't as glamorous as its name, but a few days ago I was thinking about potential downtimes for projects that cannot, for whatever reason, support auto node-switching.

Basically, if Project A is using Node A but then suddenly, Node A goes down, what do you do? Well, the project owner has to go and change the necessary settings and use Node B this time around. Yeah, they could have auto node-switching, but hey... Sometimes you can't.

I had a really easy idea on how to probably prevent this and decided on making an HAProxy setup to ensure stability and uptime over speed is also available to Hive users. With this in mind, I created api.ha.deathwing.me which is HAProxy currently balancing/checking three nodes api.deathwing.me, hived.emre.sh and api.hive.blog. I don't expect too much usage on this proxy, but if you are using it for whatever reason, please do let me know. I am planning to keep the server it's currently set up running for a quite long time.


If you don't have automatic node-switching for your project for whatever reason, feel free to utilize api.ha.deathwing.me as your node, which balances the load between 3 nodes at the moment and has constant health-checks. Will not use a node if it's down.

That's about it. Feel free to ask if you have any questions.


Someone finally did it. I've had this idea for a while but never did it. Awesome job man.

Great idea! I'll try out your proxy api.ha.deathwing.me

What's the likelihood of the proxy going down?

Hopefully quite low. :)

Great work!
All these little but important things contribute to ease of use, resilience and decentralisation.

We do use HAproxy on rpc.ecency.com for some time, really great to have stability. However, We don't load balance, we add couple other nodes as backup, just in case our own instances have issue, haproxy will switch to backup. I would suggest to do same, instead of separate endpoint, just use in main one and have other nodes as backup, all you need to do add backup into config. We did try load-balancing few months ago, it didn't work great especially when nodes have different versions...

Congratulations @deathwing! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You distributed more than 52000 upvotes.
Your next target is to reach 53000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Feedback from the February 1st Hive Power Up Day