Sitemap

Microservice

2 min readDec 9, 2020

--

What is microservice?
An application decomposed into collection of loosely coupled services.

Microservice is a architectural style - It’s a variant of the service-oriented architecture (SOA) structural style.

Advantages of microservice over monolithic.

Services are fine-grained.
The protocols are lightweight.
Highly maintainable and testable.
Independently deployable.
Organized around business capabilities.

Who are all supported microservice implementation?

Spring Software Platform supports Microservice by using Spring Boot framework.(https://spring.io/)
Spark (http://sparkjava.com/)
JAX-RS (https://docs.oracle.com/javaee/6/tutorial/doc/giepu.html)
etc.
Spring or Spark, etc. supports REST API services over HTTP transport.
HTTP operations like GET, POST, PUT, DELETE, etc.

Get Narayana Basetty’s stories in your inbox

Join Medium for free to get updates from this writer.

Swagger is a OpenAPI standards product supports all authentication and authorization for an API.
Swagger provides beautiful UI to see REST API, method allowed, parameter details etc.

Microservice is not providing great security.

Enhance Transport Layer Security(HTTPS rather HTTP).
To have better security over microservice go with different licensed and free products.
Authentication: Cyber ark Vault, AWS Secrets manager, Azure Vault , LDAP, Active Directory (AD) manages and maintains user credentials.
Authorization: OAUTH 1.0/2.0

Sample Microservice Architecture: Taxi Hailing application

Press enter or click to view image in full size

Authentication and Authorization

https://swagger.io/docs/specification/authentication/
https://oauth.net/2/grant-types/

Note: grant_type either it could be password or certificate or etc.

Press enter or click to view image in full size

Swagger UI

Authorize: Basic/Bearer/OAUTH etc

REST API and supported methods etc

Press enter or click to view image in full size

--

--

Narayana Basetty
Narayana Basetty

Written by Narayana Basetty

Principal Cloud, Enterprise Web/HDP Architect/Consultant with 18+ years of experience building scalable, distributed computing solutions for an enterprise.