Comments (1)
외부 장애 = 내가 만든 서비스 장애
가 발생하면 안된다.
- gateway에서 처리해보자
intercepter를 이용한 방식 하지만 그럴려면 결국 finAccount를 받아와야하는 api와 필요없는 api를 구분하여야 하고 이를 구현하기위해 리소스가 너무 많이 필요함 또한 스펙이 변경될 수 있기 때문에 변경 포인트도 추가 발생할 가능성 있음.
- batch를 이용
batch를 돌리는건 규모가 커질수록 부담이 많이가고 날짜기준도 정하기 쉽지 않음.
- AOP를 이용 (채택)
개인적으로 가장 적합한 방식, 필요한 컨트롤러에다가 적용하여 필요시에만 동작시킬 수 있고 관심사 분리를 통해 공통 처리가 가능하여 로직 오염을 줄일 수 있음.
from kotlinbank.
Related Issues (20)
- bank domain layer 테스트 코드 보충
- bankAccount REST 방식 API 개발
- 테스트 개선
- 계좌 관련 서비스 로직 개발
- 배포를 위한 기본 세팅 정보 수정
- 계좌 조회 기능 구현에 대한 고민 HOT 2
- Exception 간소화 작업
- 계좌 송금 API 개발
- 테스트 케이스 추가 작업
- API 문서화 작업 HOT 1
- Entity 조회 시 deleted는 제외 할 수 있게 한다. HOT 1
- Business 정책에 해당되는 로직은 Controller 에서 제외 한다. HOT 1
- [hotfix] 은행 API 연동 안되는 이슈
- [hotfix] 테스트용 계좌 불일치 문제 해결을 위한 은행 Enum 값 추가
- [hotfix] Error 핸들링을 추가한다.
- Gson 도입 작업 HOT 2
- [hotfix] 개발 서버 테스트 중 AOP에서 Transactional이 동작 안하지 않아 더티체킹이 일어나지 않는 현상
- finAccount를 재발급하기위한 AOP를 별도 관점 클래스로 분리한다.
- Graceful Shutdown 추가하여 Message Queue를 쓰더라도 안전하게 프로그램을 종료할 수 있게 한다.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlinbank.