Opinion: the vast majority of websites should be generated static sites. Exceptions: - updates need to be more than hourly - there are more than 10k pages - user content (forums, wikis, other forms) is a big component For performance, security, and infra simplicity. Arguments?
-
-
Could probably just use Apollo's `getDataIdFromObject` or whatever that method is called to add the __typename too, now that I think about it. Did you run this at Bustle or somewhere?
-
did at one point, but during last rewrite it got cut cuz of priorities. Later we revisited but decided not worth it. Bustle is much more static that spectrum so easier to cache aggressively. There is still some fancy cache busting and rererndering but not based on surrogate

-
I see I see, makes sense. This is kinda what setting the surrogate keys would look like, right?https://gist.github.com/mxstbr/1a7411caa906c619f2bf7c78f0c161ed …
-
Yep! You got it
-
Did you also use Fastly to cache GraphQL API responses? Can it even handle those?
-
Yes in past. Fastly can handle. But currently uses API gateways built in caching for simplicity.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

. It can also be a bit hard to debug.