Image for post
Image for post
Photo by Dayne Topkin on Unsplash

Tutorial

Protecting your resources in a private subnet while using the API Gateway as a gatekeeper

One of the best advice on AWS that I got was to deploy my app behind a Load Balancer (LB)and an API Gateway (APIG). Even if you are starting out with a single EC2, it will help in the long run if it is behind an APIG and an LB. The LB ensures that you can scale as and when you want, and the APIG gives you logging, throttling, and other goodies that you will need.

From my previous article on the subject,

A very typical deployment architecture for smaller startups is to have an API Gateway at the front…


Take advantage of advanced CodePush options to get your updates to users faster

Image for post
Image for post
Photo by Gilles Lambert on Unsplash

One of the biggest advantages that React Native provides over pure iOS or Android implementations is the ability to push an update over-the-air (OTA) without having to go through the onerous and time-consuming process of publishing in the respective app stores.

CodePush (by Microsoft) is the service that makes OTA updates possible. It works by updating the javascript bundle incrementally. It’s pretty clever, and you can read about it in the wonderful docs.

A CodePush update requires an app restart to complete, which can be disruptive to the user’s experience. We want to figure out a way to present our…


Image for post
Image for post
Photo by Pavan Trikutam on Unsplash

Let us learn how to connect an API Gateway to a VPC without exposing your VPC resources (e.g. Load Balancers, EC2) to the internet.

Update (24 Jun 2020)
AWS has introduced a new HTTP API Service as part of API Gateway. It is much easier to configure, and the VPC Link setup is also simpler. Please see the new article for more details

A very typical deployment architecture for smaller startups is to have an API Gateway at the front, which passes on requests to an ELB, which in turn distributes them to a bunch of EC2 instances. ELBs and…

Manu Rana

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store