code cov   code cov   code cov   code cov

Fast parallel async HTTP/SSH/TCP/UDP/Ping client java library based on Akka. Aggregate 10,000 APIs and send them anywhere with 20 lines of code. Check use cases.
Ping or HTTP calls 8000 servers with responses aggregated in 12 seconds. Parallec means Parallel Client (pronounced as "para-like"). Open Source from eBay Cloud.

Scalable Web server management Asset discovery & remote task execution API aggregation Orchestration Load testing with request template
Watch 8,000 Server HTTP | Ping Demo Tweeted by the Creator of Akka Featured in This Week in #Scala | OSChina - 2015 Top 100

Response Handler & Context

A convenient response context passes any object you need when handling response. Process data anyway and send it anywhere.

Read More

Exceedingly User Friendly

Intuitive builder pattern APIs make parallel requests exceedlingly easy. Input target hosts from list, string, text, json path, cms query from local or urls.

Read More

Auto Progress Polling

Auto progress polling to handle async APIs such as "download packages" or "create compute", enabling task level concurrency control and orchestration.

Read More

Scalable & Fast

Infinite scalablility with built-in concurrency control. Ping 8,000 servers in 12 seconds - Watch Demo. 8,000 HTTP APIs aggregated in 12 seconds - Watch Demo.

Read More

90%+ Code Coverage

High test coverage validates every feature we built. Use and contribute with confidence. Proven reliability on hitting 100,000+ Servers in a single task.

Check Coverage

Feature Packed

Task and host level progress tracking and cancelation, capacity-aware task scheduler, flexible handler locations, status aggregation, task logging, and more.

Read More

Try Parallec Now

Monitoring, config push, command execution, discovery with performant polling from HTTP/TCP agent. Or simply parallel SSH in agent-less solutions. Write 30 lines instead of 1,000 of lines of code.

Send Aggregated API Data Anywhere

A special super convenient response context let you pass in/out any object when handling the response. Now you can send aggregated data anywhere, to Kafka, Elastic Search, Redis, MongoDb, and etc, in 20 lines of code. More Features...

6 Lines Example to Get Started.

import io.parallec.core.*;
import java.util.Map;

ParallelClient pc = new ParallelClient();
.execute(new ParallecResponseHandler() {
    public void onCompleted(ResponseOnSingleTask res,
        Map<String, Object> responseContext) {
        System.out.println( res.toString() );  }

Different Requests to the Same Target Example. Read more..

        Arrays.asList("95037","48824"), "")
    .execute(new ParallecResponseHandler() {...}...

20 Lines Example using Response Context: Aggregate 100 website status to elastic search.

ParallelClient pc = new ParallelClient();
org.elasticsearch.node.Node node = nodeBuilder().node(); //elastic client initialize
HashMap<String, Object> responseContext = new HashMap<String, Object>();
responseContext.put("Client", node.client());
        .setTargetHostsFromLineByLineText("", HostsSourceType.URL)
        .execute( new ParallecResponseHandler() {
            public void onCompleted(ResponseOnSingleTask res,
                    Map<String, Object> responseContext) {
                Map<String, Object> metricMap = new HashMap<String, Object>();
                metricMap.put("StatusCode", res.getStatusCode().replaceAll(" ", "_"));
                metricMap.put("NodeGroupType", "Web100");
                Client client = (Client) responseContext.get("Client");
                client.prepareIndex("local", "parallec", res.getHost()).setSource(metricMap).execute();
node.close(); pc.releaseExternalResources();

Maven Import


Gradle Import

compile 'io.parallec:parallec-core:0.10.0'

More Examples and Complete Code..

Set Target Hosts from list, string, line by line text, json path, from local or remote URLs.

Why Parallec ?

Compared with java thread pool based solutions, parallec gives you worry free concurrency control without constraints on thread size. Compared with single-threaded Node.js solutions, Parallec enables parallel computation-intensive response handling with multiple-cores. Read More


Flow Overview

Our goal is simply to execute a task of firing a list of uniform or non-uniform HTTP/TCP/SSH/PING requests to a list of target hosts, then call the user defined handler to handle each of the responses.

Read API Overview

Try with Sample Code

Most files are independent with a main function and can be run directly. The sample spark server is a single file executable web server, which demonstrates parallel SSH/HTTP/Ping features.