使用Spring boot和spring data之前冀自,CRUD的配置需要多長時(shí)間嗤无?業(yè)務(wù)邏輯需要多長時(shí)間?總時(shí)間一個(gè)小時(shí)递鹉,業(yè)務(wù)邏輯十分鐘弓候。
思考:Spring boot&Spring data到底是為你做了什么郎哭?
Q: How did we apply design principles in the code?
A: 1. DAO (Data Access Object)2. SOLID single responsibility
你為何用python他匪,Ruby,javascript夸研?
Java不是很吸引人诚纸,但是非常穩(wěn)定。script非常fancy但是坑可能會(huì)很多陈惰。
思考:框架和框架之間到底什么不同?
spring data REST
NoSQL db
MongoDB
Spring data DB
消息中間件
RabbitMQ
WebSocket
Spring boot推薦的架構(gòu)好不好毕籽?能否進(jìn)一步的簡化呢抬闯?
Query service只負(fù)責(zé)增刪改查。service層可以取消掉关筒?
HTTP Verbs: GET/POST/PUT/DELETE/PATCH + HTTP status code
Richardson's REST maturity model
RPC call優(yōu)點(diǎn):可能快于rest
Remote Procedure Call(RPC) is a protocol that one program can use to request a service from a program located in another computer on a network without having to understand the network's details. A procedurecallis also sometimes known as a functioncallor a subroutinecall.
有哪些resource溶握,需要哪些status code?從來沒有考慮過status code蒸播。
curl localhost:8080/people?size=5 -> curl 的api測(cè)試工具
理解數(shù)據(jù)庫的方法
如何自學(xué)redis: storing data睡榆,query data。任何database都離不開這兩個(gè)方面袍榆。
drawback of relational database?
1.?schema: 非常難修改胀屿。從最底層一層一層往上改
NoSQL: Not Only SQL。Hadoop時(shí)候沒有SQL又太難用了包雀。所以后來又支持SQL宿崭。why
何時(shí)使用NoSQL還是SQL
1. structural vs non-structural 比如社交關(guān)系是一個(gè)圖,SQL就很難實(shí)現(xiàn)
幾個(gè)幾百萬行的表join的時(shí)候才写,性能下降非称隙遥快
Fault tolerance
database sharding
part of MEAN stack