Created
February 6, 2012 22:04
-
-
Save johndemic/1755249 to your computer and use it in GitHub Desktop.
Mule Esper Example: Rate Limiting a Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="Event Rate Limit Flow"> | |
<vm:inbound-endpoint path="filtered.in"/> | |
<esper:filter eventPayload-ref="#[payload:]" | |
statement="select case when count(*) > 1000 then false else true end from TestEvent.win:time(5 min)" | |
key="case when count(*)>1000 then false else true end"/> | |
<vm:outbound-endpoint path="filtered.out"/> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment