Articles Architecture
Static vs dynamic websites
Decide what to generate at publish time and what to compute for each visitor.
Start with when the answer changes
A static site serves files prepared before a request arrives. A dynamic site can assemble a response at request time from inputs such as a session, database or inventory service. A hand-authored guide and a guide generated by a build tool can both be static at delivery. An account dashboard generally needs an authenticated request because each user sees different information.
Map the publishing path
For an editorial site, a static release can capture the pages and assets as one versioned artifact. Review it locally, publish the set and retain the prior release for rollback. Deploy any newly referenced assets before pages that use them when updating in place. Keep old fingerprinted assets available while previously cached HTML can still ask for them. A dynamic application needs a publishing plan for code and a separate plan for data changes and migrations.
Design caching around variation
A public response shared by every visitor can often use a shared cache. If a response depends on identity or private information, read the HTTP caching rules and explicitly set policy for that response. A public shell can link to an authenticated area, while each part keeps its own caching and access controls. Use a versioned URL for immutable assets and make sure your HTML cache policy allows readers to discover updated references.
Pick the smallest workable runtime
List which content must update immediately, which operations must accept writes and which pages must know the visitor’s identity. A periodically updated public handbook can be built as static files, while live stock or a private account page will often need a dynamic endpoint. Compare failure modes too. Static publishing still depends on access control, server maintenance and recoverable releases. Dynamic publishing adds considerations such as application patching, private response handling and restoring data consistently.