Skip to content

A demo of a uniquely resilient system made possible by unique features of Erlang VM, the BEAM

License

Notifications You must be signed in to change notification settings

iguberman/erljuggler_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

erljuggler_demo

A demo of a uniquely resilient simulated "server" made possible by unique features of Erlang VM, the BEAM

cd src
erl

DEMO 1 JUGGLER:

>c(juggler).

>juggler:accept(10000). %% 10,000 = NumRequests we'll handle

> %% (of them every Nth request will result in inf loop) can be modified by changing define of BUG_MOD
**** 9620 [INF]*****

INDICATES INFINITE LOOP WAS SPAWNED by request # 9620

...9392 [3090]......9393 [2083]

INDICATES a "request_handler" process was finished in [millis], in this case request #9392 finished in 3090 millis and request # 9393 finished in 2083 millis . . .

9000 finished, 1000 running forever

ok

TELLS us that 1000 processes are still running, so be careful, your entire system might be affected

DEMO 2 KILLER JUGGLER:

Same as JUGGLER, but much more useful!

>c(killer_juggler).
>killer_juggler:accept(10000).

About

A demo of a uniquely resilient system made possible by unique features of Erlang VM, the BEAM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published