从0实现rpc
使用socket通过网络发起一次远程调用
针对客户端的优化:
- 规范rpc请求和响应
- 使用动态代理封装请求对象
针对服务端的优化:
- 增加简易注册中心,解耦服务的注册和调用
- 实现WorkThread,负责处理socket连接和业务处理
- 抽象化服务端,增加线程池实现的服务端
- 引入netty替换BIO
- 提高序列化效率
- 出现的问题
- JSON 序列化导致反射参数丢失类型,无法invoke时会出现异常,参数类型不符
- 解决:遍历参数类型和参数列表,使用jackson进行一次转化
从0实现rpc
使用socket通过网络发起一次远程调用
针对客户端的优化:
针对服务端的优化:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.