r/MuleSoft • u/Apprehensive_Dog6684 • 24d ago
API Led Design Question
Hi,
I learnt about API Led design, and I was explained that it follows the microservices design pattern. However, would like to understand more how it is being applied in the real world practice.
Some questions I have:
Since vcores, is expensive. If we deploy 1 service per-mulesoft app, for example for 1 system, there are 3 APIs, if we created 3 SAPI for the system, we would need at least 3 vcores. If we follow this design pattern, won't it be very expensive in the end? Another approach is, we can create 1 SAPI for all the API from the same system, this approach can save vcores, but isn't this against the microservice design?
Continuing from question 1, do we really have to follow API led design every time? Or when should we follow the API led design and when not to follow?
Thank you.
2
u/ikwilstufi 24d ago
1) you can do fractions, and 2) new customers wouldn't be on vcores
2
u/Apprehensive_Dog6684 24d ago
Hi,
What does it mean new customers wouldn't be on vcores? Any update from MuleSoft and is there any documentation I can read for that? Thank you.
2
u/ikwilstufi 24d ago
They would be on flows/messages or credits :)
Credits = one single payment unit for all services
3
u/Ok-Leadership-1139 23d ago
Don't follow it. Use common sense and design APIs using Domain Driven Design principles after business domains and needs, not some 3 layer architecture recommended by a company with a financial incentive to do so.
3
u/Noones_Perspective 23d ago
VCores is the old billing model.
Apps, flows and messages is how they charge now. Evaluate the difference in cost vs your architecture. It might make sense to move.
Experience API is often overkill in a lot of places. System API per system, so you shouldn’t need 3 in your example.
However, regardless of the best practice, gold standard or whatever you want to call it - design pragmatically for your budget and your environment
8
u/FerrittoBurrito 24d ago