News for hackers. Stuff that matters.
Re:The AWS Spend of Our SaaS Side-Business by tyingq on Saturday June 10, 2017 @11:36AM (#14527706)
>If it's internal, you probably shouldn't be using the API Gateway

It's common enough that when I asked Amazon about it, they already had enough requests that it's on the roadmap.

People use api gateways for all sorts of things like orchestration, tokenizing sensitive data, caching requests, etc, that should have the same interface whether used internally or externally. Sure, I could recreate all that functionality for internal use, but that's one of the supposed benefits of an API gateway...turn what was code into configuration. See products like Apigee, Kong, Tyk, etc.

Re:The AWS Spend of Our SaaS Side-Business by lostcolony on Saturday June 10, 2017 @11:49AM (#14527756)
Per your OP, how do you plan on caching requests without it hitting Cloudfront in some way? :P

But, I -did- mention there were caveats. Your correct in tha I should probably not have led with "You probably shouldn't", and -then- gotten more nuanced, though. While I agree that optimizing it to not leave the AWS network would be of benefit, if you reach the point you're calling it via the API Gateway internally, it's a separate service, and if it has -any- high availability requirements, or ever will, you should not be reliant on it not leaving the network (since even without going multi-region with distributed DNS, it may be handled by another AZ, introducing latency).

Re:The AWS Spend of Our SaaS Side-Business by tyingq on Saturday June 10, 2017 @12:00PM (#14527800)
>Per your OP, how do you plan on caching requests without it hitting Cloudfront in some way?

Products that compete with Amazon's API gateway can do it, though you're right that their product cannot.

Edit: There are also AWS customers that use a different CDN...Akamai, Cloudflare, etc. Decoupling API gateway and Cloudfront would have benefit for them.