Skip to content

Instantly share code, notes, and snippets.

@johndemic
Created February 6, 2012 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndemic/1755249 to your computer and use it in GitHub Desktop.
Save johndemic/1755249 to your computer and use it in GitHub Desktop.
Mule Esper Example: Rate Limiting a Flow
<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