![]() |
Code Examples
A repository of 155 code examples for BeepBeep
|
Use HTTP gateways in push mode. More...
Packages | |
package | twinprimes |
Compute twin primes by distributing the computation across two machines over a network. | |
Classes | |
class | PackerExample |
Use a packer to send events in batch and reduce the number of HTTP requests. More... | |
class | PushLocalSerialize |
In this example, Machine A and Machine B are actually the same host; they just listen to different TCP ports on the same computer. More... | |
class | PushLocalSimple |
In this example, Machine A and Machine B are actually the same host; they just listen to different TCP ports on the same computer. More... | |
class | PushMachineA |
This is the same example as PushLocalSerialize, but with the "Machine A" and "Machine B" parts of the chain split into two independent programs, with some user interaction added. More... | |
class | PushMachineB |
This is the same example as PushLocalSerialize, but with the "Machine A" and "Machine B" parts of the chain split into two independent programs, with some user interaction added. More... | |
Use HTTP gateways in push mode.
In this section, the processor chain operates in push mode. Events are produced upstream, and are pushed to the downstream processors.
You are advised to first look at PushLocalSerialize, which contains a single-machine simulation with detailed step-by-step documentation. You can then see the programs PushMachineA and PushMachineB, which perform the same computation, but across two independent programs that you can run on distinct computers.