W7D1 - Sprint3 - LoadBalancer & AWS - Presenting Project During Interview (17june)
W7D1 - Sprint3 - LoadBalancer & AWS - Presenting Project During Interview (17june)
W7D1 - Sprint3 - LoadBalancer & AWS - Presenting Project During Interview (17june)
Sprint3:
-------
Sprint Planning
complexity - 1
0.5, 1, 1.5, 2.
risk - 0
0.5, 1, 1.5, 2.
Story points : 3
S1: 20
S2: 25
S3: 30
(20+25+30)/3
Average velocity
Task Allocation:
Tasks to be done in
Approach 2:
In begining of sprint, we finalize who should work on what tasks.
Added as Assignee for the requirements.
Sprint Starts:
2 weeks
- Tasks:
Server Dev
UI Dev
Devops
Non java developer
QA
Open Sources
1. Redis caching. 1 functional usecase. payment-validation.
2. Logging (S.o.p)
3. Sensitive data, db passwords..
PROD
cannot keep in property - Bitbucket
AWS Secrets Manager
2 Tasks:
4. Async processing system
ActiveMQ/RabbitMQ/Kafka - Message brokers.
5. Business validation
Blacklisting
2 weeks of sprint:
Week7.
Week8 - off.
Demos
Microservice architecture..
http://<PublicIP>:8081/v1/payments
http
default port is "80"
https
default port is "443"
http://<PublicIP>/v1/payments
Default it tries to connect to 80 port running on
above IP.
https://<PublicIP>/v1/payments
Default it tries to connect to 443 port running on
above IP.
Domain
google.com
facebook.com
subdomain
api.google.com
api.google.com : <PublicIP>
http://api.google.com:8081/v1/payments
http://api.google.com/v1/payments
80
https://api.google.com/v1/payments
443
Microservice
How Service1 talks to Service2??
1. Approach1:
Eureka Service Registery (Central component)
2. Approach2:
LoadBalancer & Target groups.
3. Approch3: Build
AWS ECS (Amazon Elastic Compute Cloud)
Auto Scaling.
When traffic grows, create new services.
When traffics shrinks, then delete new services.
======
Security:
Spring Security
HmacSHA256
RSA
aws secret manager
Validation rules
WAF
robust : strong:
microservice
infra (EC2, RDS, Secretmanager)
payment system
Domain knowledge
Ecommerce
Domain knowledge
Shopping cart.
OrderManagement Service
Microservice architecture
relate theory & practicals on project
Docker
tail & grep & vi
.pem file for connecting.
Agile:
Currently you are doing sprint by sprint development. Is it being deployed in LIVE
systems?
When is the plan to open to LIVE customers..
Validation service
- Some more rules needs to be developerd on validation.
Trustly provider
- mock service
- connect to test/non-prod trustly env & complete end-to-end testing.
Reporting/Backoffice service
=======
QA bug fix:
cut branch from integration
fix code - complete dev testing
Pull request to integration
code review & merge
deploy on qa env.
give bug to qa in jira
qa signsoff.
When a bug comes, identify which branch is deployed on that env. And cut a branch from that..
and do the bug fixing..
- Fraud customer:
3rdParty - ComplyAdvantage
not a blocker for GoLIVe.
Currently in Trustly we are requetsing to enable these configuration.
Spring Security:
error handling system
Any failure in system, we identify it & throw custom exception.
Custom Exception
"Exception"
consistent error response structure is sent.
Global expection handler
errorcode & errormessage
http status code
ResponseEntity
Every service should have one sequence of errorcodes
any error generated by that service, should use its given errorcode sequence.
validation: 10xxx
processing: 20xxx
trustly-provider: 30xxx
- If error is coming from upstreme server, then that errorcode should be return
back as itself to invoker..
eg, if trustly provider return 30xxx, then processing servier will return same 30xxx
in response to validation service. And validation service will return same 30xxx to ecommerce
system.
- looking at error code, we can understand which part of system triggered the
problem..
duplicate
payment attempt threshold
backlist..
design patterns
factory dp
builder dp
modular systems
all project standards.. packaging..
dp..
microservices..
secure
Spring Security
HmacSHA256 &
RSA,
Spring Security
HmacSHA256
Exception handling
Ecoomerce
(Filter)
Microservice
Validation service
Validation service
Validation frame
errorcode
resttemplate
resttemplate
trustly provider - 3rdpary
List of topics:
secure
robust
payment system
e-commerce
Did API integration
Trustly
Spring Boot
microservices architecture,
AWS.
Agile
Trustly PSP integration
Design and development of Validation Framework,
Spring Security
HmacSHA256 &
RSA,
error handling system,
field & business validations,
Spring JDBC for DB,
3rdParty Trustly APIs.
Using design patterns
Build Rest APIs
strong debugging & problem solving skills.
Redis Caching
ActiveMQ