shlogg · Early preview
Samuel Ko @samuelko123

Consumer-Driven Development: Simplifying Code With API Feedback

Consumer-Driven Development prioritizes meeting consumer needs first in web app development, focusing on presentation layer (API controllers) requirements. It simplified code but may lack data validation & scalability.

It's my first time sharing my experience.
Let me know if there's anything I can improve.
  
  
  Introduction

"Consumer-Driven Development" is a made-up terminology.
In this mindset, we define what the "consumer" needs first, then orchestrate the application to satisfy the need. 
The "consumer" here can be perceived as the presentation layer, such as API controllers.
  
  
  Example

  
  
  The existing architecture

We have an application.
It calls an API endpoint periodically and logs the data:

The diagram is drawn using PlantUML.
  PlantUML Text
  

@startuml Example App
skinparam compon...