{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/networknt/light-java-example/pulls/19","id":97308466,"html_url":"https://github.com/networknt/light-java-example/pull/19","diff_url":"https://github.com/networknt/light-java-example/pull/19.diff","patch_url":"https://github.com/networknt/light-java-example/pull/19.patch","issue_url":"https://api.github.com/repos/networknt/light-java-example/issues/19","number":19,"state":"closed","locked":false,"title":"Add minimal embedded Play server for Java","user":{"login":"dpapworth","id":1827629,"avatar_url":"https://avatars.githubusercontent.com/u/1827629?v=3","gravatar_id":"","url":"https://api.github.com/users/dpapworth","html_url":"https://github.com/dpapworth","followers_url":"https://api.github.com/users/dpapworth/followers","following_url":"https://api.github.com/users/dpapworth/following{/other_user}","gists_url":"https://api.github.com/users/dpapworth/gists{/gist_id}","starred_url":"https://api.github.com/users/dpapworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpapworth/subscriptions","organizations_url":"https://api.github.com/users/dpapworth/orgs","repos_url":"https://api.github.com/users/dpapworth/repos","events_url":"https://api.github.com/users/dpapworth/events{/privacy}","received_events_url":"https://api.github.com/users/dpapworth/received_events","type":"User","site_admin":false},"body":"I've added an example for Play 2.5.10 (Java).\r\n\r\nI tried comparing to Dropwizard on my local set up. Here are Dropwizard's results -\r\n\r\n      Thread Stats   Avg      Stdev     Max   +/- Stdev\r\n        Latency   136.58ms  132.19ms   1.08s    85.24%\r\n        Req/Sec     6.53k     4.06k   34.16k    70.09%\r\n      Latency Distribution\r\n         50%   97.95ms\r\n         75%  198.72ms\r\n         90%  310.09ms\r\n         99%  597.63ms\r\n      784600 requests in 30.09s, 74.83MB read\r\n    Requests/sec:  26073.36\r\n    Transfer/sec:      2.49MB\r\n\r\nAnd here are Play's results -\r\n\r\n      Thread Stats   Avg      Stdev     Max   +/- Stdev\r\n        Latency    32.19ms  103.75ms   1.96s    96.88%\r\n        Req/Sec    24.85k     9.19k   40.87k    76.12%\r\n      Latency Distribution\r\n         50%   11.61ms\r\n         75%   19.33ms\r\n         90%   65.32ms\r\n         99%  380.39ms\r\n      2909967 requests in 30.10s, 358.00MB read\r\n      Socket errors: connect 0, read 2, write 0, timeout 55\r\n    Requests/sec:  96662.50\r\n    Transfer/sec:     11.89MB\r\n\r\nThere seems to be an occasional issue with socket errors, and I've not been able to diagnose the cause. It may simply be how the server responds to excessive load. :(","created_at":"2016-12-09T13:22:24Z","updated_at":"2016-12-09T14:27:36Z","closed_at":"2016-12-09T14:27:36Z","merged_at":"2016-12-09T14:27:36Z","merge_commit_sha":"a99f65db0fdb6be93810310bb3f70d9eae5ecbda","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/networknt/light-java-example/pulls/19/commits","review_comments_url":"https://api.github.com/repos/networknt/light-java-example/pulls/19/comments","review_comment_url":"https://api.github.com/repos/networknt/light-java-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/networknt/light-java-example/issues/19/comments","statuses_url":"https://api.github.com/repos/networknt/light-java-example/statuses/59308e23a39ccb5bde748f95941f52c0761900ae","head":{"label":"dpapworth:play-java","ref":"play-java","sha":"59308e23a39ccb5bde748f95941f52c0761900ae","user":{"login":"dpapworth","id":1827629,"avatar_url":"https://avatars.githubusercontent.com/u/1827629?v=3","gravatar_id":"","url":"https://api.github.com/users/dpapworth","html_url":"https://github.com/dpapworth","followers_url":"https://api.github.com/users/dpapworth/followers","following_url":"https://api.github.com/users/dpapworth/following{/other_user}","gists_url":"https://api.github.com/users/dpapworth/gists{/gist_id}","starred_url":"https://api.github.com/users/dpapworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpapworth/subscriptions","organizations_url":"https://api.github.com/users/dpapworth/orgs","repos_url":"https://api.github.com/users/dpapworth/repos","events_url":"https://api.github.com/users/dpapworth/events{/privacy}","received_events_url":"https://api.github.com/users/dpapworth/received_events","type":"User","site_admin":false},"repo":{"id":76033059,"name":"light-java-example","full_name":"dpapworth/light-java-example","owner":{"login":"dpapworth","id":1827629,"avatar_url":"https://avatars.githubusercontent.com/u/1827629?v=3","gravatar_id":"","url":"https://api.github.com/users/dpapworth","html_url":"https://github.com/dpapworth","followers_url":"https://api.github.com/users/dpapworth/followers","following_url":"https://api.github.com/users/dpapworth/following{/other_user}","gists_url":"https://api.github.com/users/dpapworth/gists{/gist_id}","starred_url":"https://api.github.com/users/dpapworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpapworth/subscriptions","organizations_url":"https://api.github.com/users/dpapworth/orgs","repos_url":"https://api.github.com/users/dpapworth/repos","events_url":"https://api.github.com/users/dpapworth/events{/privacy}","received_events_url":"https://api.github.com/users/dpapworth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dpapworth/light-java-example","description":"Example APIs to demo all feature of the Light-Java Framework","fork":true,"url":"https://api.github.com/repos/dpapworth/light-java-example","forks_url":"https://api.github.com/repos/dpapworth/light-java-example/forks","keys_url":"https://api.github.com/repos/dpapworth/light-java-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dpapworth/light-java-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dpapworth/light-java-example/teams","hooks_url":"https://api.github.com/repos/dpapworth/light-java-example/hooks","issue_events_url":"https://api.github.com/repos/dpapworth/light-java-example/issues/events{/number}","events_url":"https://api.github.com/repos/dpapworth/light-java-example/events","assignees_url":"https://api.github.com/repos/dpapworth/light-java-example/assignees{/user}","branches_url":"https://api.github.com/repos/dpapworth/light-java-example/branches{/branch}","tags_url":"https://api.github.com/repos/dpapworth/light-java-example/tags","blobs_url":"https://api.github.com/repos/dpapworth/light-java-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dpapworth/light-java-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dpapworth/light-java-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/dpapworth/light-java-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dpapworth/light-java-example/statuses/{sha}","languages_url":"https://api.github.com/repos/dpapworth/light-java-example/languages","stargazers_url":"https://api.github.com/repos/dpapworth/light-java-example/stargazers","contributors_url":"https://api.github.com/repos/dpapworth/light-java-example/contributors","subscribers_url":"https://api.github.com/repos/dpapworth/light-java-example/subscribers","subscription_url":"https://api.github.com/repos/dpapworth/light-java-example/subscription","commits_url":"https://api.github.com/repos/dpapworth/light-java-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/dpapworth/light-java-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/dpapworth/light-java-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/dpapworth/light-java-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/dpapworth/light-java-example/contents/{+path}","compare_url":"https://api.github.com/repos/dpapworth/light-java-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dpapworth/light-java-example/merges","archive_url":"https://api.github.com/repos/dpapworth/light-java-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dpapworth/light-java-example/downloads","issues_url":"https://api.github.com/repos/dpapworth/light-java-example/issues{/number}","pulls_url":"https://api.github.com/repos/dpapworth/light-java-example/pulls{/number}","milestones_url":"https://api.github.com/repos/dpapworth/light-java-example/milestones{/number}","notifications_url":"https://api.github.com/repos/dpapworth/light-java-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dpapworth/light-java-example/labels{/name}","releases_url":"https://api.github.com/repos/dpapworth/light-java-example/releases{/id}","deployments_url":"https://api.github.com/repos/dpapworth/light-java-example/deployments","created_at":"2016-12-09T12:19:46Z","updated_at":"2016-12-09T12:19:48Z","pushed_at":"2016-12-09T13:11:38Z","git_url":"git://github.com/dpapworth/light-java-example.git","ssh_url":"git@github.com:dpapworth/light-java-example.git","clone_url":"https://github.com/dpapworth/light-java-example.git","svn_url":"https://github.com/dpapworth/light-java-example","homepage":"","size":219,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"networknt:master","ref":"master","sha":"4472ed3675ddbca98fc15639c2b9a8cc0ce572f4","user":{"login":"networknt","id":8740739,"avatar_url":"https://avatars.githubusercontent.com/u/8740739?v=3","gravatar_id":"","url":"https://api.github.com/users/networknt","html_url":"https://github.com/networknt","followers_url":"https://api.github.com/users/networknt/followers","following_url":"https://api.github.com/users/networknt/following{/other_user}","gists_url":"https://api.github.com/users/networknt/gists{/gist_id}","starred_url":"https://api.github.com/users/networknt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networknt/subscriptions","organizations_url":"https://api.github.com/users/networknt/orgs","repos_url":"https://api.github.com/users/networknt/repos","events_url":"https://api.github.com/users/networknt/events{/privacy}","received_events_url":"https://api.github.com/users/networknt/received_events","type":"Organization","site_admin":false},"repo":{"id":67934497,"name":"light-java-example","full_name":"networknt/light-java-example","owner":{"login":"networknt","id":8740739,"avatar_url":"https://avatars.githubusercontent.com/u/8740739?v=3","gravatar_id":"","url":"https://api.github.com/users/networknt","html_url":"https://github.com/networknt","followers_url":"https://api.github.com/users/networknt/followers","following_url":"https://api.github.com/users/networknt/following{/other_user}","gists_url":"https://api.github.com/users/networknt/gists{/gist_id}","starred_url":"https://api.github.com/users/networknt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networknt/subscriptions","organizations_url":"https://api.github.com/users/networknt/orgs","repos_url":"https://api.github.com/users/networknt/repos","events_url":"https://api.github.com/users/networknt/events{/privacy}","received_events_url":"https://api.github.com/users/networknt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/networknt/light-java-example","description":"Example APIs to demo all feature of the Light-Java Framework","fork":false,"url":"https://api.github.com/repos/networknt/light-java-example","forks_url":"https://api.github.com/repos/networknt/light-java-example/forks","keys_url":"https://api.github.com/repos/networknt/light-java-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/networknt/light-java-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/networknt/light-java-example/teams","hooks_url":"https://api.github.com/repos/networknt/light-java-example/hooks","issue_events_url":"https://api.github.com/repos/networknt/light-java-example/issues/events{/number}","events_url":"https://api.github.com/repos/networknt/light-java-example/events","assignees_url":"https://api.github.com/repos/networknt/light-java-example/assignees{/user}","branches_url":"https://api.github.com/repos/networknt/light-java-example/branches{/branch}","tags_url":"https://api.github.com/repos/networknt/light-java-example/tags","blobs_url":"https://api.github.com/repos/networknt/light-java-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/networknt/light-java-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/networknt/light-java-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/networknt/light-java-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/networknt/light-java-example/statuses/{sha}","languages_url":"https://api.github.com/repos/networknt/light-java-example/languages","stargazers_url":"https://api.github.com/repos/networknt/light-java-example/stargazers","contributors_url":"https://api.github.com/repos/networknt/light-java-example/contributors","subscribers_url":"https://api.github.com/repos/networknt/light-java-example/subscribers","subscription_url":"https://api.github.com/repos/networknt/light-java-example/subscription","commits_url":"https://api.github.com/repos/networknt/light-java-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/networknt/light-java-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/networknt/light-java-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/networknt/light-java-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/networknt/light-java-example/contents/{+path}","compare_url":"https://api.github.com/repos/networknt/light-java-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/networknt/light-java-example/merges","archive_url":"https://api.github.com/repos/networknt/light-java-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/networknt/light-java-example/downloads","issues_url":"https://api.github.com/repos/networknt/light-java-example/issues{/number}","pulls_url":"https://api.github.com/repos/networknt/light-java-example/pulls{/number}","milestones_url":"https://api.github.com/repos/networknt/light-java-example/milestones{/number}","notifications_url":"https://api.github.com/repos/networknt/light-java-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/networknt/light-java-example/labels{/name}","releases_url":"https://api.github.com/repos/networknt/light-java-example/releases{/id}","deployments_url":"https://api.github.com/repos/networknt/light-java-example/deployments","created_at":"2016-09-11T14:31:47Z","updated_at":"2016-12-09T02:41:33Z","pushed_at":"2016-12-09T14:27:36Z","git_url":"git://github.com/networknt/light-java-example.git","ssh_url":"git@github.com:networknt/light-java-example.git","clone_url":"https://github.com/networknt/light-java-example.git","svn_url":"https://github.com/networknt/light-java-example","homepage":"","size":218,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/networknt/light-java-example/pulls/19"},"html":{"href":"https://github.com/networknt/light-java-example/pull/19"},"issue":{"href":"https://api.github.com/repos/networknt/light-java-example/issues/19"},"comments":{"href":"https://api.github.com/repos/networknt/light-java-example/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/networknt/light-java-example/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/networknt/light-java-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/networknt/light-java-example/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/networknt/light-java-example/statuses/59308e23a39ccb5bde748f95941f52c0761900ae"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stevehu","id":2042337,"avatar_url":"https://avatars.githubusercontent.com/u/2042337?v=3","gravatar_id":"","url":"https://api.github.com/users/stevehu","html_url":"https://github.com/stevehu","followers_url":"https://api.github.com/users/stevehu/followers","following_url":"https://api.github.com/users/stevehu/following{/other_user}","gists_url":"https://api.github.com/users/stevehu/gists{/gist_id}","starred_url":"https://api.github.com/users/stevehu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevehu/subscriptions","organizations_url":"https://api.github.com/users/stevehu/orgs","repos_url":"https://api.github.com/users/stevehu/repos","events_url":"https://api.github.com/users/stevehu/events{/privacy}","received_events_url":"https://api.github.com/users/stevehu/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":43,"deletions":0,"changed_files":5}}
{"actor":{"display_login":"stevehu"}}