A new Load Balancer for STEEM Blockchain on Serverless Azure Function

in #witness-category4 years ago (edited)

Notice: Suspended at 2023 Nov

Spent two days on developing/debugging another Load Balancer using Serverless Azure Function for Steem Blockchain.

New Load Balancer on Azure Function (London, UK) for Steem RPC Nodes:
https://justyy.azurewebsites.net/api/steem

Why Load Balancer?

Real STEEM RPC Nodes are sitting behind a Load Balancer. When users send request to Load Balancer (LB). LB then sends a ping (asking for the version information by the way) to each candidate servers, the fastest response (with 200) wins.

Then, the users' requests are forwarded to that server, and the responses are forwarded by LB to the users.

image.png

Why Serverless?

A Physical Server is a single point of failure. By using serverless technology (AWS Lambda, Azure Function, CloudFlare Worker) - we greatly are confident that the LB will not die (highly available).

Any Drawbacks?

LB increases the latency since it needs to first send pings and wait for the response back - there is a middle hop. Also, with Serverless technology - there is usually a cold start - but this can be improved if we set up a canary (health check that runs at a interval)

Current Load Balancers for STEEM Blockchain

I have provided the following LB for steem blockchains:

  1. Global Edge Network: https://steem.justyy.workers.dev
  2. Asian Pacific (Tokyo): https://x68bp3mesd.execute-api.ap-northeast-1.amazonaws.com/release
  3. Europe: https://justyy.azurewebsites.net/api/steem
  4. America: https://e51ewpb9dk.execute-api.us-east-1.amazonaws.com/release

All Nodes that I have provided:

Check: https://steemyy.com/witness-nodes.php

image.png

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Thank you for reading ^^^^^^^^^^^^^^^

NEW! Following my Trail (Upvote or/and Downvote)

Follow me for topics of Algorithms, Blockchain and Cloud.
I am @justyy - a Steem Witness
https://steemyy.com

My contributions

Delegation Service

  1. Voting Algorithm Updated to Favor those High Delegations!
  • Delegate 1000 to justyy: Link
  • Delegate 5000 to justyy: Link
  • Delegate 10000 to justyy: Link

Support me

If you like my work, please:

  1. Delegate SP: https://steemyy.com/sp-delegate-form/?delegatee=justyy
  2. Vote @justyy as Witness: https://steemyy.com/witness-voting/?witness=justyy&action=approve
  3. Set @justyy as Proxy: https://steemyy.com/witness-voting/?witness=justyy&action=proxy
    Alternatively, you can vote witness or set proxy here: https://steemit.com/~witnesses

Notice: Suspended at 2023 Nov

Sort:  

You've been doing very well my friend ,,, keep up the spirit

Thaks you @justyy I delegated 300 sp.
Suppot me