WCF Note10(Message Pattern)
来源:互联网 发布:杭州软通动力骗局 知乎 编辑:程序博客网 时间:2024/04/29 12:19
Classic Message Exchange Pattern (MEP):
- Request/reply
- One-way
- Duplex or callbacks
Transformed Pattern : Publish and subscribe
One Way Scenarios:
1. Fire-and-forget
e.g.: Logging
2. Polling
e.g.: able to make another request to get the previous request status
3. Duplex
e.g.: two ways communication, with call back function, Butbe aware of concurrency issue
Note: Duplex required two ways communication e.g. WSDualHttpBinding
Code sample: service contract + callback contract
Server Side:
Client Side:
Sample: Publisher/Subscriber
Large Message
- MTOM: reduces the overhead of binary data transfer: ( help with parsing and sizing transfer)
- Remove base64
<wsHttpBinding> <binding name="WsHttpMtomBinding" messageEncoding="Mtom" maxReceivedMessageSize="500000"/><readerQuotas maxArrayLength=”500000"/> </wsHttpBinding>
- Streaming (helping reduce memory usage)
<basicHttpBinding><binding name="basicHttpStreaming"transferMode="Streamed"/></basicHttpBinding>
- [OperationContract]
Stream LoadData()
- Chunking message into the small piece
Tool: TcpTrace
- WCF Note10(Message Pattern)
- Note10
- WCF开发之消息模式(Message Pattern)
- [WCF] Message Contract
- WCF Message Size Quotas
- Thread-Per-Message Pattern
- Thread-Per-Message Pattern
- WCF之Message Exchange Patterns
- WCF的Message Logging 和Tracing
- 从零开始学WCF(8)Message类
- Java线程之Thread-Per-Message Pattern
- note10 高阶函数
- 化零为整WCF(16) - 消息队列(MSMQ - MicroSoft Message Queue)
- 化零为整WCF(16) - 消息队列(MSMQ - MicroSoft Message Queue)
- 化零为整WCF(16) - 消息队列(MSMQ - MicroSoft Message Queue)
- WCF Transport-Level Security vs Message-Level Security
- wcf rest 从Message里获取原生body
- New in WCF 4.0 Note & Filters for Message Logging Note
- iphone 程序 调用系统程序
- oracle 常用语句
- 黑马程序员----自定义对象在集合中的使用
- 开发iPhone发送消息时,刚好找到这个
- DAO 设计1、DAO 配置文件的设计
- WCF Note10(Message Pattern)
- DAO 设计2、查询方式的设计
- Android的3D旋转
- 基础问题
- Oracle语句优化53个规则详解
- DAO 设计3、数据库连接的管理
- 对面的师弟
- DAO 设计4、事务处理(1)
- java也能写出漂亮的界面(Java开源Swing外观)