There is no need to fork the code to create a plugin:
https://docs.trafficserver.apache.org/en/8.0.x/developer-guide/plugins/getting-started/a-simple-plugin.en.html

Once it's working and tested, it would be appreciated if you would offer it
for addition in plugins/experimental under TS's Apache license.  There are
many plugins that are not in the trafficserver repo.  Some companies want
to keep their plugins proprietary, which is permissible under the TS
license.  Maybe some plugins are offered, but are not put in the core repo
because they wouldn't be used that widely.

On Fri, Jun 21, 2019 at 5:09 PM Weixi Li (BLOOMBERG/ PRINCETON) <
wli...@bloomberg.net> wrote:

> Hi team,
>
> We are experimenting with ATS in *forward* proxy mode. Our use-case
> requires a rate-limiting component that enforces rules based on the
> destination.
>
> For example:
>
> For all incoming requests targeting "www.cnn.com", we want to limit the
> outgoing rate to be 10 requests per minute; for "www.reddit.com", we want
> the rate to be 20 requests per minute; and so on. If there were more
> requests than the limit specified, the requests must be queued before they
> could go out.
>
> Is it possible to implement this requirement using a plugin?
>
> If not, we wouldn't mind forking the code and modifying whichever parts
> that would be necessary. But which are the potentially relevant components?
>
> If any experts could give us some pointers on the design, that would be
> really appreciated.
>
> Thanks,
> Weixi

Reply via email to