Friday, May 24, 2019
Thursday, May 23, 2019
Microservices - Advanced
- OAuth 2.0
- Introduction
- Client Registration
- Client Identifier
- Client Password
- Client Authentication
- Protocol Endpoints
- Authorization Endpoint
- Token Endpoint
- Scope
- OAuth Protocol Flow
- Grant Types
- Authorization Code Grant Type
- Implicit Grant Type
- Password Grant Type
- Client Credentials Grant
- Refresh Token Grant Type
- Redis Token Store
- Database Token Store
- Separating Authorization and Resource servers
- Authorization Server
- Resource Server
- OAuth 2.0 Client
- Client Authorization Code
- Client Password
- Client Client-Credentials
- Client Implicit
- Microservices Security with OAuth
- Fares MicroService
- Search Microservice
- Booking Micorservice
- CheckIn Microservice
- PSS Website
- JSON Web Token (JWT)
- Introduction
- Header
- Payload
- Signature
- Verifying JWT
- Microservices with JWT
- Authorization Server with Symmetric Key
- Micro Services with Symmetric Key
- Authorization Server with Asymmetric Key
- Micro Services with Asymmetric Key
- API Gateway using Zuul
- API Gateway using Zuul
- API Gateway and OAuth
- API Gateway and OAuth
- Microservices with AWS
- Microservices with AWS
Saturday, May 18, 2019
Spring Cloud
Spring Cloud by itself is not a cloud. Rather, it provides a number of components those are essential when developing applications targeting cloud deployments that adhere to the twelve-Factor application principles. The cloud-ready solutions that were developed by using Spring Cloud are also portable across many cloud provides
Cloud computing promises many benefits such as :
Popular cloud providers :
The Twelve Factors - Twelve-Factor Apps define a set of principles of developing applications targeting the cloud. Many organizations prefer to lift and shift their applications to the cloud. The application(in our case microservice) has to follow and check Twelve-Factor rules before moving to cloud i.e., in order to run microservices seamlessly across multiple clouds, it is important to follow Twelve-factor rules while developing cloud native microservices.
Spring cloud config :
In spring boot applications,
Cloud computing promises many benefits such as :
- Cost advantage
- Speed
- Agility
- Flexibility and elasticity.
Popular cloud providers :
- Amazon ( AWS)
- Microsoft ( Azure)
- Google ( Google Cloud)
- Pivotal(Cloud Foundry)
- IBM ( Blue Mix)
- Red Hat (Open Shift)
- Rackspace(Rackspace)
Manual deployment could severely challenge the microservices rollouts. With many server instances running, this could lead to significant operational overheads. Moreover, the chances of errors are high in this manual approach.
Microservices require elastic could-like infrastructure which can automatically provision VMs or containers, automatically deployapplications, adjust traffic flows, replicate new version to all instances, and gracefully phase out older versions.
The automation also takes care of scaling up elastically by adding containers or VMs on demand, and scaling down when the load falls below threshold.
The application(in our case microservice) has to follow and check Twelve-factor rules before moving to cloud:
The Twelve Factors - Twelve-Factor Apps define a set of principles of developing applications targeting the cloud. Many organizations prefer to lift and shift their applications to the cloud. The application(in our case microservice) has to follow and check Twelve-Factor rules before moving to cloud i.e., in order to run microservices seamlessly across multiple clouds, it is important to follow Twelve-factor rules while developing cloud native microservices.
I. Codebase
One codebase tracked in revision control, many deploys. Each microser
II. Dependencies or Bundling dependencies.
Explicitly declare and isolate dependencies
III. Config or Externalizing Configurations.
Store config in the environment. This principle suggests the externalization of all configuration parameters from the code. The micro services configuration parameters should be loaded from an external server.
IV. Backing services
Treat backing services as attached resources
V. Build, release, run
Strictly separate build and run stages
VI. Processes
Execute the app as one or more stateless processes
VII. Port binding
Export services via port binding
VIII. Concurrency
Scale out via the process model
IX. Disposability
Maximize robustness with fast startup and graceful shutdown
X. Dev/prod parity
Keep development, staging, and production as similar as possible
XI. Logs
Treat logs as event streams
XII. Admin processes
Run admin/management tasks as one-off processes
Spring cloud config :
In spring boot applications,
Tuesday, May 14, 2019
Xpath
XPath - Important topics
- Home
- Overview
- Expression
- Nodes
- Absolute Path
- Relative Path
- Axes
- Operators
- Wildcard
- Predicate
References :
Useful resources - https://www.tutorialspoint.com/xpath/xpath_useful_resources.htm
Subscribe to:
Posts (Atom)
Hyderabad Trip - Best Places to visit
Best Places to Visit in Hyderabad 1. 1. Golconda Fort Maps Link : https://www.google.com/maps/dir/Aparna+Serene+Park,+Masj...
-
What is Docker ? Reference - https://www.docker.com/what-docker#copy1 Docker is the company driving the container movement and the ...
-
Want to become AWS champion, follow below detailed weekly topics orderly to reach your goal. AWS IoT Plan M...