Back to course home
0% completed
Vote For New Content
Is offloading payload validation from application to API Gateway a good idea?
Shrikrishna jagdale
Jul 26, 2025
Normally in spring boot application we write validation checks for the request content, e.g headers, request body fields. What if we offload this validation to api gateway and let the application assume that only valid requests will land on the application's controller?
0
0
Comments
Saumya Kumara month ago
No, Never assume the gateway is only entry point, Internal calls may bypass gateway, Future refactors will break assumptions.
Its best to keep the business logic to spring boot only
Oladayo Toriola12 hours ago
Data validation at gateway level is possible but bad design.
Better to keep it at service level. If the data or schema changes, gateway doesn't need to worry about that but your service should.
On this page
A. Horizontal Scaling
B. Vertical Scaling