News for hackers. Stuff that matters.
Re:The AWS Spend of Our SaaS Side-Business by thesandlord on Friday June 09, 2017 @05:36PM (#14524778)
Disclaimer: I work for Google Cloud

> Cloud solutions like elastic load balancing are generally engineered for the average use case. Think about the ways you are not like the average.

This might be the case for some things, but many of Google Cloud's "elastic/serverless" products (Load Balancers, App Engine, Pub/Sub, BigQuery, Datastore, etc) can truly scale up from nothing to huge traffic spike without the need for pre-warming and things like that.

Re:The AWS Spend of Our SaaS Side-Business by nodesocket on Friday June 09, 2017 @08:51PM (#14525617)
Came here just to reiterate this. Google Cloud Load balancers don't need warming, manual creation of support tickets, etc.

Also, networking on GCP is vastly superior to AWS. The VPC is setup with sane defaults and VM instances can communicate privately to other VM instances in any zone or region without needing complicated constructs such as VPN's or NAT instances.

Lastly, Google Cloud is generally cheaper (sustained use-discounts), higher performance, and takes all the lessons learned from AWS and applies them.

The one knock I have on GCP is billing. It is incredibly obtuse. Even the monthly billing invoices I still have a hard time digesting (especially if you have multiple projects under a single billing account).

Re:The AWS Spend of Our SaaS Side-Business by manigandham on Sunday June 11, 2017 @11:40AM (#14532350)
> The one knock I have on GCP is billing. It is incredibly obtuse.

Really? We've found it to be much easier. The billing section has up-to-date current breakouts and a simple list of transactions for each billing account. There are budget alerts and the best part is the easy export into bigquery which then gives you SQL access for all of it. Add in datastudio and you have BI style analysis and visualizations too. Better than anything else the other clouds have.

Video from GCP Next: https://www.youtube.com/watch?v=qL8kvTb4RbU

Re:The AWS Spend of Our SaaS Side-Business by tyingq on Saturday June 10, 2017 @09:31AM (#14527247)
Any AWS users have a better experience with their newer "ALB" load balancer? It doesn't specifically call out any performance benefits over the legacy "ELB", but since it's much newer, I'm curious if it happens to do better.
Re:The AWS Spend of Our SaaS Side-Business by aluminussoma on Saturday June 10, 2017 @11:46AM (#14527739)
Yes. Although Administration / UI is slightly more confusing. We had unique performance issues with the ELB offering that couldn't be fixed because it was the way it was designed. With ALB, that performance issue no longer existed.
Re:The AWS Spend of Our SaaS Side-Business by mwcampbell on Saturday June 10, 2017 @12:34PM (#14527939)
ALB may be more complicated, but it's also more flexible, and I've especially come to appreciate that in the past couple of days.

By the way, it looks like ALB might be based on nginx, based on the error pages. I wonder if classic ELB is based on HAProxy.

Re:The AWS Spend of Our SaaS Side-Business by NicoJuicy on Saturday June 10, 2017 @06:31AM (#14526857)
This... To get even the invoices of Google apps ( suite) I have to download 12* 3€
Re:The AWS Spend of Our SaaS Side-Business by encoderer on Friday June 09, 2017 @05:47PM (#14524860)
When I read that your load balancer is not individually provisioned the way Amazon's is I was envious. I couldn't imagine migrating to a new cloud provider now but I'm really impressed with what Google has put together!
Re:The AWS Spend of Our SaaS Side-Business by shusson on Friday June 09, 2017 @08:14PM (#14525509)
> I couldn't imagine migrating to a new cloud provider now

ugh vendor lock-in is the worst :)

Re:The AWS Spend of Our SaaS Side-Business by cobookman on Saturday June 10, 2017 @12:08PM (#14527824)
You should talk to a gcp sales rep. They can help you move to a multi Cloud deployment. As well as describe some migration options.
Re:The AWS Spend of Our SaaS Side-Business by jacques_chester on Saturday June 10, 2017 @08:32AM (#14527109)
I think there will eventually be a lot of headslapping blogposts from people who migrate to GCP. It really is that much better and still costs less.

Where I work we are saving ... uh ... a lot of money by migrating our workloads over. And they're faster. It's awesome.

Re:The AWS Spend of Our SaaS Side-Business by blazespin on Saturday June 10, 2017 @04:50AM (#14526652)
Google Cloud is great and cheap. But AWS is waaay more ahead in terms of completeness. I've looked into this. The breadth, depth, and polish of AWS is really impressive. Their API Gateway -> lambda container -> DataStore is amazing. I really wish I could use GCP. :(

Hopefully GCP will start pushing AWS to lower their prices. They charge so much.

Re:The AWS Spend of Our SaaS Side-Business by _0nac on Saturday June 10, 2017 @07:49AM (#14527019)
Curious: How does that differ from GCP's Cloud Endpoints/Apigee Edge -> Cloud Functions -> Cloud Datastore?

Disclaimer: I work for GCP.

Re:The AWS Spend of Our SaaS Side-Business by tyingq on Saturday June 10, 2017 @10:30AM (#14527455)
Some of it is just documentation and marketing. If you go to the AWS api gateway main page, it talks about serverless/lambda integration right there. They also have specific pages that show how to use them together. Including using them as the endpoint, or using them at a higher level to influence routing to a different endpoint, or modify requests, etc.

Contrast with Google, you start with the confusion that there are two products (cloud endpoints, apigee), and neither really talks about integration with Cloud functions.

Re:The AWS Spend of Our SaaS Side-Business by squeaky-clean on Saturday June 10, 2017 @01:05PM (#14528100)
In my case the first obstacle (and I haven't looked into it too much) is we have a lot of Lambda functions written in Python and Scala.
Re:The AWS Spend of Our SaaS Side-Business by tyingq on Saturday June 10, 2017 @09:37AM (#14527259)
The API Gateway is somewhat limited in that the endpoints are tied to CloudFront. So, if you want to leverage it internally, versus connections from a user's web browser, the request leaves your VPC (and potentially goes quite a ways out) for no obvious reason. It would be nice if they decoupled API gateway from CloudFront.
Re:The AWS Spend of Our SaaS Side-Business by lostcolony on Saturday June 10, 2017 @11:19AM (#14527648)
If it's internal, you probably shouldn't be using the API Gateway. You can just call the underlying lambda directly through the SDK with invoke and save yourself the cost of the API Gateway, as well as be able to invoke it asynchronously should that be a better fit.

That said, it depends on your design/architecture as to whether that is appropriate or not. Sometimes you want that distinct separation. But if that's the case, you should also probably not even be thinking about that low latency case, because you should treat it as a service outside of your control, that may be (and probably should be) cross regionally available (so you might even be crossing the country, for all you know. This presumes the inclusion of latency based routing with a custom DNS, of course, but for a standalone, client facing service, that's what you should be doing anyway).

Obviously there may be a middle ground you want, but I'd say you probably either want to treat it as "your" API, and thus, you can be as pragmatic as you want when accessing it, or you want to treat it as a reusable, completely separate service, that you are a client of, in which case things like location can not be guaranteed, and thus latency is a reality.

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.

Re:The AWS Spend of Our SaaS Side-Business by josiahpeters on Saturday June 10, 2017 @01:21PM (#14528179)
We recently used API gateway to publish our first "public" facing API for some of our partners to integrate with. We we're using swagger to describe our internal APIs. A subset of those APIs needed to be exposed to partners. We also wanted to enforce a different security model and leverage rate limiting for these requests to protect us from unexpected growth.

Integrating API gateway into our deployment took a little bit of work, but we're happy to have it part of our automated deployment process. We push updates of our swagger spec with AWS CLI to a separate API per environment (dev, staging, and prod-west, prod-east). Each of environment has one API gateways with several stages that we use for green/blue deployments. The stages are green, blue, and public. We deploy to the inactive color (green or blue) smoke test and promote that stage to public. This simulates the same process we do in production and the swap to public is akin to our DNS swap from one side to the other. We were very happy that it wasn't a huge time investment to fit this workflow into our deployment process.

Somehow we missed the fact that because API gateway was tied to CloudFront that it did not support multi regional failover. If we have a service outage in our primary region we swap all of our traffic with DNS to our secondary region (from us-west-2 to us-east-1). In order for us to do a regional failover with API gateway we would need to deprovision the endpoint api.domain.com in the failing region and provision api.domain.com in our failover region. I'm expecting if we have to do a regional failover there is a very good chance that the request to deprovision the endpoint will likely fail. See my AWS forum reply and other's asking for the same feature: https://forums.aws.amazon.com/message.jspa?messageID=761925#...

    My team is very much looking forward to this functionality. We have duplicated our infrastructure across multiple regions to mitigate a region outage. We were planning on relying on a dns change to route traffic to a new region.
    
    With the limitations that you have described, our failover process is much more complicated and uncertain. 
    
    Given the two regions primary (us-west-2) and secondary (us-east-1). We will need to attempt to disassociate our api.domain.com from primary API Gateway and wait for that operation to complete. After that we must associate our secondary API Gateway with api.domain.com. Its very possible and likely issues on primary that caused us to fail over to secondary may prevent the disassociating from the primary. This is an extremely undesirable side effect as it could leave us with unhandled requests or error responses to api.domain.com.
    
    I wanted to post this here for others suggest alternative workarounds or ideas. We will also follow up with a support ticket.
They are aware of the issue and it seems like something on their roadmap, but that could mean 1-2 years out. Thankfully this partner API doesn't have near the same SLA and HA requirements we have for other features of our SaaS product. If our SLA requirements were higher we would need to consider a different solution. We have handwaved some ideas that we could use if there was an extensive outage which likely equates to standing up a reverse proxy that listens on api.domain.com and proxies traffic to the API gateway url for our secondary region. That certainly isn't ideal and doubles the latency that we have with API Gateway already proxying requests to our internal API.