Hi there!
It has been almost 4 weeks since I released the War Era Gateway, and I wanted to share a small update becaue I think this is something worth celebrating.
When I first released the Gateway the goal was simple:
Make tools more efficient, reduce rate limit headaches, and most importantly, reduce unnecessary load on the War Era hamsters servers.
And it seems to be working really well.
The Gateway is currently handling around 2.4 million requests per day.
That is already a pretty crazy number on its own.
But the more interesting part is this:
Out of those 2.4 million daily requests, the Gateway only sends around 400,000 requests per day to the official War Era API.
That means the Gateway is currently handling around 2 million requests per day locally through caching, batching, deduplication, and local database storage.
In other words:
2 million requests every day do not have to be sent to the War Era servers.
That is a huge win for efficiency.
Every request that does not have to hit the official War Era API means less load on the game servers.
And less load on the game servers is good for everyone.
It helps tool developers because their tools become faster and more reliable.
It helps users because pages load quicker.
And it helps https://app.warera.io/user/6813b758efecdf9bab195068 because the official War Era servers do not have to deal with millions of unnecessary extra requests.
So if you are building a tool for War Era and you care about efficiency, please consider using the Gateway.
OLD: https://api2.warera.io/trpc/
NEW: https://gateway.warerastats.io/trpc/That is all you need to change.
One thing I also find pretty funny is that all of this was running on a small VPS that costs around €5 per month.
It only had 2 vCPUs, and lately it was constantly sitting at around 180-190% CPU usage.
So yes, it was working hard.
Because of the amount of traffic the Gateway is now handling, I have upgraded the server to a slightly bigger VPS of €7.50 per month.
Still nothing crazy, but hopefully enough to give the Gateway a bit more breathing room.
I want to thank everyone who has tried the Gateway, used it in their tools, shared feedback, or simply helped spread the word.
Seeing it handle millions of requests per day while reducing load on the actual game servers is exactly what I hoped it would do.
And again:
If you are a developer making tools for War Era, use the Gateway if you want efficiency for https://app.warera.io/user/6813b758efecdf9bab195068 and the War Era servers.
Gateway: gateway.warerastats.io
Source code: github.com/Hattorius/War-Era-Gateway
Discord: discord.gg/VFcpPDys4b
War Era Stats: warerastats.io