Skip to content

AlanUeyn/yandex-payment-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yandex-payment-service

Description

The payment service that used sharding mechanism for distribution payment info between three databases.

Dev Notes

Used:

  • Apache ShardingSphere
  • H2 in-memory database for demonstration purpose

All sharding settings (database instances, sharding rules) are set up by Spring Boot Autoconfiguration in application.yaml

Quick start

  1. Clone repository
  2. Move to the project folder
  3. Execute the following commands
For Windows:

gradlew bootRun

For Linux:

./gradlew bootRun

See also

API info: http://localhost:8080/swagger-ui.html

H2 database console: http://localhost:8080/h2_console

Instances:

  1. jdbc:h2:mem:test
  2. jdbc:h2:mem:test1
  3. jdbc:h2:mem:test2

Username: sa Password: password

About

The test task for Yandex.Money

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages