Core, caching, and different devices: three foundation tasks
Data, its freshness, and page presentation have different owners. Exploring three causes of a problem with one article card.
How shared contracts, current data, and page presentation support a product.
An article card looks like a simple element: an image, a headline, a short description, and a link. Yet getting it right depends on several different tasks. The system's parts need to understand the data, the prepared result needs to stay current, and the page needs to present the article within the available space.
In Solution200, the shared technical foundation can be explained through Core, caching, and presentations for different devices. These are three separate responsibilities. Mixing them in one component makes it harder to understand exactly where a problem needs to be fixed.
Core provides a shared language
In this article, Core means the shared technical foundation and its contracts. A contract defines the information a consumer receives and the behavior it can rely on. Its value becomes clear when several capabilities need to interact without knowing one another's internal workings.
For example, a public presentation needs a title, a description, and a link to the article. It should not independently recreate the editorial form's rules or the way a translation is stored. The owner of the relevant capability prepares a clear read result, and the presentation uses it.
A shared language also helps with changes. When the meaning of a field or an access rule is defined in one place, consumers can more easily keep that meaning consistent. At the same time, Core should not absorb everything that appears in two products. A rule specific to an article stays in the content capability, while that article's position on the homepage belongs to the site itself.
Caching is responsible for reusing a result
A cache allows a result that has already been prepared to be reused. But users need more than a fast response: after an editorial change, they should see the appropriate new value.
Imagine that an editor changes a headline. The database record has already been updated while the homepage still shows the old card. This means that storing data and keeping the presentation current need to be considered separately.
The caching mechanism needs to know what the prepared result depends on and which change makes it stale. The site determines where that result is used. Placing separate, incompatible clearing rules in every template creates new copies of the behavior the platform is trying to share.
In Solution200's architecture, updating dependent presentations is tied to a confirmed data change. In particular, an action after a successful transaction means something different from an action performed before the transaction finishes. If a record has not been saved, other parts of the system must not treat it as a completed change.
The cache therefore needs to behave correctly after both a successful write and a failure or rollback. Checking only one of these cases leaves the other unanswered.
Different devices change the presentation
On a wide screen, a journal may show topics, selected articles, and recent publications at the same time. On a narrow screen, the same content elements need a different sequence and more compact navigation.
The presentation can change the page's composition. The device changes how the page is presented, while the title's value and the visibility and access rules remain shared. Otherwise, the mobile version becomes a separate product with its own quietly diverging rules.
Article has separate desktop and mobile presentations. This is a choice made by a particular consumer of the shared foundation. Each presentation needs consideration of long headlines, empty collections, tables, and images: selecting a template alone does not guarantee a usable page.
How to distinguish three causes of one problem
Suppose a reader reports that an article headline is displayed incorrectly. Before changing code, it helps to clarify the nature of the problem.
| Observation in a hypothetical example | What to investigate first |
|---|---|
| Every presentation receives the wrong value | The contract and data read path |
| The data has changed, but the old card remains | Cache dependencies and invalidation |
| The value is correct but clipped only on a narrow screen | The card's specific presentation |
This table suggests a direction for investigation rather than automatically establishing the cause. A similar symptom can arise across several layers. Check the observation and find the owner of the behavior before making a fix.
The practical benefit of this separation is a more precise question about the problem. First establish whether the issue lies in the data, its freshness, or its presentation. It then becomes easier to locate the change and check the behavior the reader actually needs.