<commit_before>async-servlet-examples
======================

Examples of asynchronous servlets using different technologies. Also uses asynchronous HTTP clients.

Eclipse Public License.<commit_msg>Describe the module types in README.md.<commit_after>async-servlet-examples
======================

Examples of asynchronous servlets using different technologies. Also uses asynchronous HTTP clients.

The modules called something with "sleep-server" exposes an HTTP service at http://localhost:8001/ that responds after a certain time. The optional parameter replyAfterMillis determines after how long time (default 1000 ms) the service responds. The response contains a statement about after how long time the response was actually sent.

The modules whose names end with "-client" are command line applications that call the service described above. They take two arguments. The first argument is the number of requests to make and the second corresponds to the parameter replyAfterMillis. They make the calls to the service, receive the responses and prints out how long time it took.

Modules with "forward-server" in the name exposes an HTTP service at http://localhost:8002/ that calls the service in the sleep-servers. The two parameters request, which influences how many requests are made, and replyAfterMillis, which is explained above, are used.

Eclipse Public License.

{'fraction_non_alphanumeric': 0.07091172214182344, 'fraction_numerical': 0.008683068017366137, 'mean_word_length': 5.286363636363636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3123892', 'n_tokens_mistral': 310, 'n_tokens_neox': 287, 'n_words': 179}