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
#!/usr/bin/env groovy | |
@Grab('org.slf4j:slf4j-simple:[1,)') | |
import groovy.util.logging.* | |
@Grab('io.fabric8:kubernetes-client:[4,)') | |
import io.fabric8.kubernetes.client.* | |
import io.fabric8.kubernetes.api.model.* | |
@Slf4j |
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
#!/usr/bin/env python3 | |
import asyncio | |
from aiohttp import web | |
from switchio import Client, EventLoop | |
class CallServer: | |
def __init__(self, loop, host): | |
events = EventLoop(host=host, loop=loop) |
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
public class AsyncHttpApp { | |
ExecutorService pool = Executors.newFixedThreadPool(25); | |
private interface Provider { | |
public void provide(String url, int times) throws Exception; | |
} | |
private class PlainProvider implements Provider { | |
public void provide(final String url, int times) throws Exception { |