以Bid Wanted in Competition为例子,包含服务划分,API和数据库表设计。
BWIC 背景介绍
Client UI 视图
Admin UI 视图
bwic 业务划分
bwic 架构
- bwic-service (my_bwic database - MySQL)
- client-service (my_client database - H2)
- audit-service (my_audit database - Redis)
API
- bwic-service
client 用户
- 查看所有 bwic
- 输入、更新和取消 bid
- 查询 my bid
- client-service 输入 client 信息,主要是资产是否有资格参与拍卖
数据库表
- bwic-service
- bwic [id, cusip, position, price, due_date, market_value, created_by, created_date)]
- bid [id, bwic_id, client_id, bid_market_value, bid_time]
- client-service
- client [id, name, asset_value]
涉及到的概念
- Spring
- 控制反转(依赖注入)(利用java1.3反射)
- AOP(全局异常与日志切片)
- Spring Boot, Cloud
- Tomcat
- Eureka
- Swagger
- Feigh
- Kafka