The following is adapted from a session idea submitted to SRCCON.
The “iron triangle” of the ideal news app could be described as: scalable, fast, and cheap. As the saying goes “pick two.”
News apps should be inexpensive to deploy, respond quickly to user interaction, and scale to handle large volumes of traffic. However, trade-offs make it hard to achieve news app nirvana.
In the past, news app teams have developed specialized tools to “bake out” their dynamic, database-driven applications or have gone down the path of learning the ins-and-outs of the latest-and-greatest caching technology – oh, the horror!
Fear not, dear reader, there is a way to have the dream of scalable, fast, and cheap: the static news app!
The question remains, is there room to take these ideas further, while at the same time aiming to simplify, simplify, simplify? And, with so many “static site generators” already out there, is it always necessary to develop something new and specific to the needs of your newsroom?
The answer is a definite maybe.
Over the next few posts, I’m hoping to explore:
- The magic behind some of the existing static news app tools and templates
- A list of the “minimum viable ingredients” that are typically necessary to make your own static news app architecture
- Guiding principles to think about when making the buy vs. borrow vs. build decision
More technically, I’ll try to dig into the common architectural patterns that static news apps will need to consider. For example:
- Everything is a service: thinking about design of static apps & data wrangling
- Preprocessors, build tools, generators, scaffolding, etc.
- Back-end services & options for client-side storage
- Authentication & authorization in a static app: Dave Winer’s developed a great example recently that I’d like to look at.
- Error handling, logging, and notifications
- CORS, CSRF, XSS and other security concerns for static apps
Ideally, you’ll arrive here a baker, and leave a sushi chef!
If you have experience with building scalable, fast, and cheap static news apps, please subscribe to the comments below (I’ll pop a note there as new post go up) and leave a note with your thoughts (or drop me a line on Twitter).