Giter VIP home page Giter VIP logo

simpleaccount's Introduction

SimpleAccount

RestAPI 기반의 Simple Account 만들기

사용 기술

  • Spring boot
  • spring data jpa
  • redisson
  • embedded redis
  • h2 DB

H2 DB를 이용해 미리 입력된 사용자 데이터를 바탕으로 동작하는 기능 개발.

  • Account - 계좌 생성, 계좌 삭제, 계좌 조회
  • Transaction - 잔액 사용, 거래 취소, 거래 조회

Exception

  • GlobalExceptionHandler로 공통 Exception 처리 후 ErrorCode response

Test

  • 다양한 케이스의 유닛 테스트 코드 작성.
  • Mockito -> mock을 생성해 의존성 없이 테스트.
  • WebMvcTest -> 특정 컨트롤러만 격리시켜서 유닛단위로 테스트.

동시성 이슈로 인한 lost update

  • 거래금액을 늘리거나 줄이는 과정에서 여러 쓰레드 혹은 인스턴스에서 같은 계좌에 접근할 경우 발생
  • Spring AOP를 이용해서 redis locking & unlocking.

simpleaccount's People

Contributors

devjy39 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.