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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Bracing for Traffic

5 点作者 mrtomservo将近 2 年前
With a bit of luck and the arrival of some stickers, I’ll be launching a website for my wife this week, who has Polycystic Kidney Disease. We’re looking for a living donor, and I’ve put a website together to funnel people into our hospital’s donor intake system. This is about as much as I personally can do besides raise awareness: I tried to donate my own kidney but found out I have a disqualifying structural abnormality with my own kidneys. I’ll be fine.<p>In addition to my own (middling, 110-follower) social media, lI’m budgeting for getting Cameos from one or two of her favorite actors mentioning the site and using those for sponsored Instagram posts focusing on our local area, along with free stickers and yard signs. I’m hoping we get enough traction that maybe maybe maybe we get a local news segment. What I’m worried about, ironically, is if that segment gets picked up nationally, or goes viral or whatever, and the website gets hugged to death. Our donor can actually be anywhere in North America.<p>So, I wanted this website to be high-performing and fast with near-zero infrastructure to worry about. The single-page site is vanilla HTML, CSS, and a tiny bit of JavaScript served from an AWS CloudFront distribution with an S3 bucket as its origin. The whole payload is 435K, and most of that is images and a font from Typekit (or Adobe Fonts or whatever it is now). Security certificates are all from AWS. Mail for the domain is being handled by a paid ImprovMX account routing to my Gmail (where I’ve got rules and things set up). The image of my wife is print-resolution for a single newspaper column, more or less. The mailing address is a UPS Store mailbox. Responsive design for mobile. High-contrast colors for accessibility. Perhaps it goes without saying, but my wife and I don’t have an expectation of total privacy during this period of our lives, but we would like to maintain our physical safety.<p>These are all the things I could think of, but my question is: What am I forgetting? If this website gets picked up by the New York Times, what technical fires am I going to be putting out? There is a near-zero chance this will happen, but near zero is nonzero, and every pair of eyeballs we get is connected to a pair of kidneys that might be a match.<p>Thanks in advance for your help! And you if you feel called to, please share: https:&#x2F;&#x2F;www.michelleneedsakidney.org&#x2F;

3 条评论

frfl将近 2 年前
One small optimization that could help at scale is serving smaller images, with links to full sized images. Perhaps a separate &quot;Press&quot; page or a &quot;Press&quot; section with links to full sized images.<p>Mainly sticker.jpg and michelle.jpg, which account for over 180kb almost 1&#x2F;3 of your total bytes on your webpage<p>Besides that you could look to use system fonts instead of custom ones, <a href="https:&#x2F;&#x2F;systemfontstack.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;systemfontstack.com&#x2F;</a> to eliminate 3 fonts from your loading<p>Finally, you could probably remove the apple-touch-icon.png and associated HTML, unless you really expect people to pin the website to their home pages (I think that&#x27;s what apple-touch-icon.png is used for, like a PWA?)<p>Good luck OP, I hope it goes well for you and your wife
ac2u将近 2 年前
Sometimes folks have too long a TTL on their DNS records, but yours seem fine.<p>Helps to be able to get traffic directed elsewhere faster should you need it (given your setup I doubt you&#x27;ll do much better for scalability than edge-cached static CDN content).<p>Short TTLs aren&#x27;t a sure thing, but can help. Recommend they be lengthened again once things are stable to be a better internet citizen.
lusus_naturae将近 2 年前
Maybe also link to resources for the potential donor? <a href="https:&#x2F;&#x2F;livingdonorsonline.org&#x2F;ldosmf&#x2F;index.php?board=3.0" rel="nofollow noreferrer">https:&#x2F;&#x2F;livingdonorsonline.org&#x2F;ldosmf&#x2F;index.php?board=3.0</a><p>Other than that, I am sure you&#x27;re already aware of load and stress testing frameworks and tools.<p>Good luck to you both.