Refactor/Polish the Edge Load Balancer Node: api2.steemyy.com

in #steem9 days ago

I've spent some time to polish/refactor the Edge Load Balancer Node: https://api2.steemyy.com which is running using the CloudFlare's snippets. For Pro Plan, the max sub requests is 2 which works fine now.

I may open source this.

Snippets comparisons per plan: https://developers.cloudflare.com/rules/snippets/
image.png

Trace the request for testing - disable WAF
image.png

Testing console - shows exceededSnippetsSubrequests when there are 3 nodes or more.
image.png

Tested OK!
image.png

curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params":[["bdhivesteem"]], "id":1}' https://api2.steemyy.com | jq { "jsonrpc": "2.0", "result": [ { "id": 1811491, "name": "bdhivesteem", "owner": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "STM585FBW4C3jWGVtjkC2h6uWJEdaosr9Z4sNnHGjs2iMhDHZ3JV8", 1 ] ] }, "active": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "STM585FBW4C3jWGVtjkC2h6uWJEdaosr9Z4sNnHGjs2iMhDHZ3JV8", 1 ] ] }, "posting": { "weight_threshold": 1, "account_auths": [], "key_auths": [ [ "STM585FBW4C3jWGVtjkC2h6uWJEdaosr9Z4sNnHGjs2iMhDHZ3JV8", 1 ] ] }, "memo_key": "STM585FBW4C3jWGVtjkC2h6uWJEdaosr9Z4sNnHGjs2iMhDHZ3JV8", "json_metadata": "", "posting_json_metadata": "", "proxy": "", "last_owner_update": "1970-01-01T00:00:00", "last_account_update": "1970-01-01T00:00:00", "created": "2023-04-27T04:56:42", "mined": false, "recovery_account": "frank0222", "last_account_recovery": "1970-01-01T00:00:00", "reset_account": "null", "comment_count": 0, "lifetime_vote_count": 0, "post_count": 0, "can_vote": true, "voting_manabar": { "current_mana": "403736232791", "last_update_time": 1759399116 }, "downvote_manabar": { "current_mana": "100934058197", "last_update_time": 1759399116 }, "voting_power": 0, "balance": "0.000 STEEM", "savings_balance": "0.000 STEEM", "sbd_balance": "47993.693 SBD", "sbd_seconds": "115103634298014", "sbd_seconds_last_update": "2025-10-07T09:11:21", "sbd_last_interest_payment": "2025-09-09T13:06:24", "savings_sbd_balance": "0.000 SBD", "savings_sbd_seconds": "0", "savings_sbd_seconds_last_update": "1970-01-01T00:00:00", "savings_sbd_last_interest_payment": "1970-01-01T00:00:00", "savings_withdraw_requests": 0, "reward_sbd_balance": "0.000 SBD", "reward_steem_balance": "0.000 STEEM", "reward_vesting_balance": "0.000000 VESTS", "reward_vesting_steem": "0.000 STEEM", "vesting_shares": "182069.798799 VESTS", "delegated_vesting_shares": "0.000000 VESTS", "received_vesting_shares": "226373.684614 VESTS", "vesting_withdraw_rate": "0.000000 VESTS", "next_vesting_withdrawal": "1969-12-31T23:59:59", "withdrawn": 0, "to_withdraw": 0, "withdraw_routes": 0, "curation_rewards": 0, "posting_rewards": 0, "proxied_vsf_votes": [ 0, 0, 0, 0 ], "witnesses_voted_for": 0, "last_post": "1970-01-01T00:00:00", "last_root_post": "1970-01-01T00:00:00", "last_vote_time": "1970-01-01T00:00:00", "post_bandwidth": 0, "pending_claimed_accounts": 0, "vesting_balance": "0.000 STEEM", "reputation": 0, "transfer_history": [], "market_history": [], "post_history": [], "vote_history": [], "other_history": [], "witness_votes": [], "tags_usage": [], "guest_bloggers": [] } ], "id": 1, "__server__": "https://api.justyy.com", "__version__": "0.23.1", "__country__": "US", "__serverless_version__": "2025-10-13", "__steem_servers__": [ "https://api.justyy.com", "https://api.steemit.com" ] }

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png

Coin Marketplace

STEEM 0.09
TRX 0.32
JST 0.033
BTC 107725.12
ETH 3830.34
USDT 1.00
SBD 0.62