About this video
What You'll Learn
- How BGP routes traffic to the nearest available edge location.
- How ngrok load balancers span multiple POPs without georeplicating apps.
- How ngrok fails over requests from a down tunnel to another edge.
BGP routes the internet like Google Maps, but running your own POPs is hard. ngrok's global load balancer spans 8 POPs with automatic failover, demoed here with two Deno apps tunnelled from EU and US.
Jump to a chapter
- 0:00 Introduction: The Challenge of Global Edge Services
- 0:10 The Challenge of Global Routing
- 0:38 BGP as the Internet's "Google Maps"
- 0:58 Minimizing Latency with Multiple Regions/Edge Locations
- 1:10 The Difficulty of Manual Global Routing (Complexity & Cost)
- 1:21 Difficulties of Traditional Approaches
- 1:54 Introducing Ngrok Global Load Balancers (The Solution)
- 2:25 Ngrok's Failover Capability
- 2:31 Call to Action: Get Started with Ngrok
- 2:42 Demonstration Setup (EU & US Terminal Panes)
- 2:58 Simple Deno Applications in EU and US
- 3:20 Connecting Apps with Ngrok Tunnels
- 3:31 Testing Global Routing from Different Locations
- 3:41 Testing Failover (Routing to next closest edge)
- 3:46 Conclusion and Final Call to Action
Full transcript
Generated from the English captions. Timestamps jump the player to that moment.
Read the full transcript
0:00 Introduction: The Challenge of Global Edge Services
0:00 Did you know that the border gateway protocol, BGP, is the magic incantation that you need to deliver services at the edge? Well, you don't need to be a wizard to understand this today. Let's imagine you want some McNuggets. You know there's at least 30 or maybe 90 McDonald's within a quarter mile of wherever you are. But which one is closest? Unless you know, you may use Google Maps to help you out. It knows where you are, and it knows where all the McDonald's are. It can give you the quickest route from a to b. BGP is the Google Maps
0:38 BGP as the Internet's "Google Maps"
0:38 of the Internet. It doesn't matter where you are or where your customers are. With the power of the Internet, they can always access your website or your product. It may just take them a little bit longer if they're further away from where your servers or your applications are hosted. So to minimize that latency, you start deploying to multiple regions or even to edge locations. But now you've got six or 12 points of presence, but you still got a challenge. You still got a problem to solve. How do you route your customers wherever they are to your POP in the right region
1:10 The Difficulty of Manual Global Routing (Complexity & Cost)
1:18 with the closest path? Now you can use BGP to do this. It provides the ability to have a single IP address and allow BGP to advertise different routes in different regions, much in the same way that Google Maps will route you from where you are to the nearest McDonald's. Now to do this, all you need is more points of presence, more pops, at least ten years of networking excellence, enough money to buy some IP v four pills, your own autonomous systems, and even more money to bribe the other autonomous systems to peer review. Breaking news. Ngrok's global load balancers
1:54 Introducing Ngrok Global Load Balancers (The Solution)
1:54 provide everything you need to deliver low latency services around the world with eight POPs including Asia, Australia, India, South America, and of course, America and Europe. Ngrok will handle the routing of requests to your edge services for you. Wow. You don't even need to geo replicate your application to take advantage of lower latency due to ngrok's connection and module acceleration capabilities. Double wow. To sweeten the deal, if any of your edge locations are failing, ngrok will route requests for your service to the next closest edge. You're welcome. Get started with ngrok's global server load balancer today and keep your customers happy.
2:31 Call to Action: Get Started with Ngrok
2:38 Link to get started in the description below. Now back to the studio. Alright. That's enough of the whimsical. Let's dive into the fun and get hands on keyboard. Here you will see I have four panes open in my terminal, two in The EU, Two in The US. This is the simplest Deno application I can put together where this one says hello EU and on the bottom it says hello US. We can run both of these applications, and we could hit them on the public IP of each machine itself. However, we want to use ngrok and the global load balancer.
3:20 Connecting Apps with Ngrok Tunnels
3:20 For that, I can run ngrok tunnel passing on a label I got from the ngrok UI like so. I can do the same in The US. We can then head over to these tabs where I can do a curl from The US box, and we get hello US. From my local machine, I get hello EU. Let's shut down The US tunnel, and now we get hello from EU. It really is that simple. Anyone can undo it. Go check out ngrok.com today.
Technologies featured
Stay ahead in cloud native
Tutorials, deep dives, and curated events. No fluff.
Comments