Project the Response, Not the Cache

Posted on Oct 1

Posted on Oct 1 • AI-assisted ## Project the Response, Not the Cache A response can be correct for one caller and still leave the application in a worse state for everyone who follows. This is an easy trap in ASP.NET Core when a result filter, formatter, or middleware needs to change a few fields before a response leaves the server. Localization is a useful example: a DTO contains source-language text, the current request asks for another language, and the pipeline replaces selected strings before serialization. The first response looks right. The implementation may even be pleasantly small.…

Читать полностью →

Источник: DEV.to

Подключаюсь к источникам…

30 главных источников
о мире ИИ

Автоматический перевод, курирование и красивая подача главных статей об искусственном интеллекте.

0
статей
0
источников
9
разделов