API Middleware

Sujit Udhane
Jan 9, 2021

How API Middleware can help you?

1) acts as filter or interceptor for API request/response.
2) modify the HTTP request object — adding unique Request id/thread Id for
request identification, traceability.
3) security checks — Token validation/RBAC validation/etc.
4) protecting from web security vulnerabilities such as a OWASP vulnerabilities
— XSS/Cross Site Scripting Attacks/MIME Sniffing/etc.
5) encryption/PII Masking — Encrypt/Mask sensitive data in-flight mode.
6) apply API rate usage cap.
7) API traffic logging — auditing/analytics purpose.
8) Request/Response — validation as per defined generic schema/criteria’s.
9) error/exception handlings.
10) API Response augmentation.

e.g. ExpressJS in Node.js, Spring in Java

If you like the article, please clap for it. Also, share the article with your friends.

--

--

Sujit Udhane

I am Lead Platform Architect, working in Pune-India. I have 20+ years of experience in technology, and last 10+ years working as an Architect.