-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CDN for Bridge #444
Comments
This was placed in the icebox sometime on or before April 13th. We decided to use load balancers instead because, even though it is less performant and possibly more work to implement, it was a "sure thing" to meet the release deadline. I put the load balancers behind an AWS Global Accelerator to partly meet the needs of this ticket. Global accelerators use the same AWS edge nodes as CloudFront to provide DDoS protection, global fault tolerance, increase throughput by ~90%, and decrease latency by ~50%. My customers were very satisfied with the improvements in performance! However, global accelerators do not cache content at the edge locations. We should still switch the bridge to a CDN at some point in the future. |
Needs to confirm if it's complete or not. |
Following issue 404 and engineering issue 38, this task is to retrofit the cloud infrastructure for the EVM bridge websites to use a content delivery network (CDN).
The testnet bridge currently uses a load balancer, and the mainnet bridge uses a load balancer behind a global accelerator. This is great, but a CDN would be substantially faster for clients outside of North America and Europe.
If there is some reason a CDN cannot be used, the testnet bridge should also be put behind a global accelerator.
Strategy
We will start with the testnet bridge, then implement a CDN for the mainnet bridge if and only if it is a sure thing - we got everything working on the testnet with the CDN, the process is well understood, and there is minimal risk to causing downtime for mainnet endpoints. The existing infrastructure shall not be torn down until the CDNs are complete and verified working in a number of cities across the globe using a virtual private network (VPN). This enables us to fall back to the existing infrastructure quickly in the face of downtime.
The good news is that we can test with the CDN distribution URI before we change the DNS records. The CDN changes will not impact the community until the DNS records are changed for the published endpoints. On the testnet, we also have certificates issued for a subdomain (
beta.bridge.testnet.evm.eosnetwork.com.
) so we can also test the HTTPS wiring with an ENF domain name using the CDN before deploying a change which could potentially cause downtime for customers.Acceptance Criteria
The text was updated successfully, but these errors were encountered: