interface를 client, server에 배포해두고. 서버에서 interface를 실제 구현한 클래스를 정의한다.
Http를 이용해서 entity에 추가해서 송수신하는 message format을 정의한다. serialization은 protostuff를 사용할 수 있다. client에서는 단순히 interface에 정의된 것만 호출함으로 rpc 효과를 얻을 수 있다.
protobuff가 성능도 용량도 작아서 많이 쓸만해 보임
Protostuff is the stuff that leverages google's protobuf.
A serialization library with built-in support for forward-backward compatibility (schema evolution) and validation.
- available formats:
- protostuff (native)
- graph (protostuff with support for cyclic references. See SerializingObjectGraphs)
- protobuf
- json
- smile (binary json useable from the protostuff-json module. See http://wiki.fasterxml.com/SmileFormat)
- xml
- yaml (ser only)
- kvp (binary uwsgi header)
'general java' 카테고리의 다른 글
java- HTMLEntity 변환 코드 (2) | 2012.06.22 |
---|---|
json http request 보내는 ngrinder script 참조 (0) | 2012.06.15 |
protocol buffer idl 구현시 팁 (0) | 2012.05.18 |
[Jackson] json string에서 null인 properties는 보이지 않게 하기 (0) | 2012.05.13 |
MyBatis SQL 쿼리 로그 남기기 (query log) (0) | 2012.05.12 |