TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How are you using Serverless architecture in production?

8 点作者 kcoleman731将近 9 年前
I&#x27;ve been hearing a ton about&quot;serverless&quot; software recently and am evaluating AWS Lambda for an upcoming project. I&#x27;d be curious to know how the Hacker News community has actually been leveraging serverless architecture in production?<p>Which use cases have worked well for people? Which have not?

5 条评论

tedmiston将近 9 年前
AWS Lambda is really cool, but there are a few quirks to keep in mind that make it not a general replacement for something like a box running nginx + uWSGI, etc.<p>There was a nice 45-minute talk given at PyOhio this year by Matt Land that covers most of the tradeoffs around running Lambda in prod.<p><i>AWS Lambda: From Curiosity to Production</i><p>Abstract - <a href="http:&#x2F;&#x2F;pyohio.org&#x2F;schedule&#x2F;presentation&#x2F;246&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pyohio.org&#x2F;schedule&#x2F;presentation&#x2F;246&#x2F;</a><p>Video - <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ZoMhFsH9k8Q" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ZoMhFsH9k8Q</a>
评论 #12300979 未加载
schappim将近 9 年前
Yes. I have a high volume ecommerce site that sells Raspberry Pis in Australia[1] which is static and built using middleman[2]. The files sit on S3 + Cloudfront and are deployed using S3_website[3].<p>The contact page is powered by AWS Lambda.<p>Some old school jQuery keeps track of the commerce cart and forms &quot;Cart Links&quot;[4], that send the user to the checkout of a Shopify Store.<p>[1] <a href="http:&#x2F;&#x2F;raspberry.piaustralia.com.au" rel="nofollow">http:&#x2F;&#x2F;raspberry.piaustralia.com.au</a><p>[2] <a href="https:&#x2F;&#x2F;middlemanapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;middlemanapp.com&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;laurilehmijoki&#x2F;s3_website" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;laurilehmijoki&#x2F;s3_website</a><p>[4] <a href="https:&#x2F;&#x2F;help.shopify.com&#x2F;themes&#x2F;customization&#x2F;cart&#x2F;use-permalinks-to-preload-cart" rel="nofollow">https:&#x2F;&#x2F;help.shopify.com&#x2F;themes&#x2F;customization&#x2F;cart&#x2F;use-perma...</a>
tantalor将近 9 年前
I&#x27;m a big fan of Google App Engine; it has support for many languages now and powers some huge apps like Pokemon Go.<p><a href="https:&#x2F;&#x2F;www.g2crowd.com&#x2F;blog&#x2F;platform-as-a-service-paas&#x2F;platform-as-a-service-pokemon-go&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.g2crowd.com&#x2F;blog&#x2F;platform-as-a-service-paas&#x2F;plat...</a>
评论 #12303112 未加载
imauld将近 9 年前
We use it for various small tightly contained tasks in response to events (Kinesis events, S3 writes, etc), similar to how you might use Celery tasks to do something where either don&#x27;t care about the result or the result might take to long to compute for you wait.<p>As a completely made up arbitrary example say you send two types of emails to your users, a newsletter and personal notifications. You send the notifications yourself but have a third party service for the newsletter. When a user opts out of all emails you can make the required changes on your end but calling out to the other service might take longer than you are are willing to make a user wait.<p>So instead you write something to S3 or Kinesis or some other stream that Lambda can access that takes the user ID and informs your email provider to no longer send emails to this address.
mrits将近 9 年前
I&#x27;ve spent the past two weeks working on architecture proposal around this. At a very high level my conclusions were basically:<p>API Gateway could be very useful but is extremely overpriced. Lambda is a bit more reasonable but not worth the trouble for me.<p>Both of those services have easy alternatives such as Auto Scale rules, EC2, and ELB.<p>Kinesis is really nice. And for our use case, isn&#x27;t very expensive. If people used it for things like a distributed task queue I could see how things could get out of hand. We will use it for more of an ingress data buffer.<p>I&#x27;m also using the KCL which uses dynamodb to handle some distributed state issues. A bit like ZooKeeper. This will allow you to handle some coordination between your consumers and meet the demands of your delivery requirements.