博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

官网Plugin Development Introduction

Posted on 2017-08-31 10:27  bw_0927  阅读(64)  评论(0)    收藏  举报

https://docs.trafficserver.apache.org/en/6.2.x/developer-guide/plugins/introduction.en.html

Traffic Server provides special event-driven mechanisms for efficiently scheduling work: the event system and continuations.

The event system is used to schedule work to be done on threads.  事件系统是用来调度任务的

continuation is a passive, event-driven state machine that can do some work until it reaches a waiting point; it then sleeps until it receives notification that conditions are right for doing more work.

continuation是一个被动的,事件驱动的状态机。 执行---等待----执行---等待。。。。

 

Plugins are typically implemented as continuations.