4 ms·
As far as “bottlenecks”. Almost all applications have data separate from code. Most implementations don’t run their applications on the same server as their da
by scarface74 8y ago
As far as “bottlenecks”.
Almost all applications have data separate from code. Most implementations don’t run their applications on the same server as their databases.
Most app servers shouldn’t be “caching state locally” anyway. Once you do that it makes scaling horizontally harder - you have to
Implement sticky sessions.
And in all practicality, I would assume that most people are using EBS for their storage which is network attached storage.
Two lambda backed microservices work together just like any other microservices - via known urls and over https.
- hueving 8y ago>you have to Implement sticky sessions. There is more to the world than serving HTTP requests.
- breischl 8y agoTo expand on your point, there is also more to cache than user-specific data. Exchange rates, tax rates, product catalogs, and more can be usefully cached without requiring sticky sessions.
- scarface74 8y agowho keeps that data locally on the server?
- hueving 8y agoIf you're querying the IRS for tax rates every time you run a calculation, you're doing it wrong.
- scarface74 8y agoIf you aren’t querying exchange rates often - you’re also doing it wrong....
- ralph84 8y agoDepends on what you're using the exchange rates for. The rates used by Visa only change once per day, as an example.
- scarface74 8y agoAnd you still wouldn’t store that locally. You may cache it locally - something you could also practically do with lambda.
- ralph84 8y agoWell yes, the parent we're replying to was talking about caching.
- Slartie 8y agoAnyone implementing business-critical applications which have to continue to function if external services go down. Ever wondered how cash registers work? Exactly like that. The world may burn down around you, but as long as your cash register PC is running, it must continue to at least offer basic functionality.
- scarface74 8y agoYou mean like all of the cash registers at companies like Target that were breached because they were distributed? https://www.post-gazette.com/business/2013/12/19/Target-acknowledges-security-breach-40-million-accounts-compromised/stories/201312190236 https://www.post-gazette.com/business/2013/12/19/Target-ackn...
- cthalupa 8y agoThe vast majority of point of sale systems are networked, and this is nothing new. There's literally millions of PoS systems out there running off of AS/400 backends, even today.
- sonnyblarney 8y agoThings like exchange rates, catalogues, tax rates are not generally 'session oriented' anyhow. They could be cached by some other means hopefully at least somewhat transparent to the business logic anyhow, so to the OP's point, I don't think this is a limitation. I'm in agreement that the fundamental limitations prescribed in the article are academic for the most part. 'custom GPU's ' are not really what we're after with Lambda's etc, at least not yet - and I'll bet when we get to that point it may be possible to access specialized hardware in Lambdas as well. In addition, things like '15 minute timeouts' are kind of arbitrary product design issues: we generally don't need 'long-timed Lamdas' because that's not what they are for. Something that needs 15 mins of crunching is better suited to another piece of the infrastructure anyhow. Serverless computing, done in a manner that can doesn't throw up a bunch of hurdles definitely has a lot of advantages. The more obvious downside to me is the degree to which they are all fairly custom implementations, and that Lamdas aren't so easily ported between providers.
- scarface74 8y agoSure, you have communications over queues, event messages etc. both supported by lambda. You also have higher volume messages from something like IOT devices where you would use something like Kinesis.
- IgorPartola 8y agoAre FaaS’s fundamentally aimed at those use cases?
- scarface74 8y agoYes. Those are all processes that are “embarrassingly parallel” workloads. You can just point lambda to a queue for instance and it will automatically scale based on workload. When nothing is in the queue, you’re not paying for resources just to poll an empty queue.
- colllectorof 8y ago>Almost all applications have data and separate from code. Almost all applications aren't distributed in any meaningful sense of the word.
- scarface74 8y agoIf you aren’t doing distributed applications, why are you even considering lambda - the main purpose of which is massive parallelism?
- slavik81 8y agoIs the main purpose massive parallelism? I was under the impression it was mostly for rarely used resources, because you only pay when you use them.
- Avshalom 8y agoBecause 'you' don't get to make the decisions.
- scarface74 8y agoWhat type of organization will ignore experienced developers that can rationally argue the type of architecture? I've been developing professionally for over 20 years and I can honestly say that I’ve never been overridden about small scale architectural decisions like should we use lambda versus an EC2 instance unless the decisions makers had some larger insight than I had. I don’t mean I could have decided whether to go to Azure or AWS or use Oracle instead of SQL Server or something on that level.
- Avshalom 8y agoI'm not in this arena at all but Amazon's lambdas seem like a way bigger architectural decision than azure vs AWS or Oracle vs sqls
- 8y ago
- Karrot_Kream 8y ago> Most app servers shouldn’t be “caching state locally” anyway. Once you do that it makes scaling horizontally harder - you have to Implement sticky sessions. Why not? In-memory caches are fast and fairly uncomplicated to write.
- LASR 8y agoYes, but you want applications to be entirely stateless. The only caching you should be doing is for static data that never changes. Alternatively, a lot of interpreted/JIT'ed languages, for example will have some form of a module cache. These are perfect, so your request latency is considerably lower than the first request latency.
- dlhavema 8y agoThe sticky session thing is about a clients session. You store the identifier on one machines and if the same client hits another machine it knows nothing of that session I'd. This is one example but in memory only works well in this setup for client agnostic data. Type table lookups, etc
- adrianmonk 8y agoBecause when you have horizontally scaled to 1000 servers, when the next request comes in, it's very likely to hit a different server from last time. So your cache hit rate is going to be horrendous. Take the cache hit rate you'd have for a single server, and divide it by 1000, the odds of getting the same server again. So if your cache hit rate was 80%, now it's 0.08%. Of course you could arrange for a user's requests to hit the same server as last time, but that's sticky sessions.
- IgorPartola 8y agoWait so how is Lambda making this worse? In this case it’s pretty clear you want a caching server instead of an in memory cache. I don’t see why the 1000 serverless functions is worse than 1000 long running processes.
- 8y ago
- jeremyjh 8y agoNot every application is a web application. There is this quaint old framework for distributed computing called Hadoop, maybe you've heard of it? It has a little brother Spark. Anyway the whole point is to "ship code to data". Its an interesting idea, but I don't think it will ever go anywhere.
- scarface74 8y agoAnd surprisingly that use case works with Kinesis and queues etc.
- jeremyjh 8y agoNo, map reduce is not stream processing at all. It’s a transformation/computation over what may be many terabytes of data.
- scarface74 8y agohttps://aws.amazon.com/blogs/compute/ad-hoc-big-data-processing-made-simple-with-serverless-mapreduce/ https://aws.amazon.com/blogs/compute/ad-hoc-big-data-process...
- jeremyjh 8y agoYes its possible, and the SP describes the shortcomings involved in giving up data locality and cross-node interaction.