Challenge Overview
Competition Task Overview
Welcome to the Fall from Grace Challenge: Gracefully service failover component in Java���
In the previous challenge we have built a simple java based component that can gracefully handle the inability to connect to an HTTP(s) based service and it worked great. But now we want to enhance it to use AsyncHttpClient as well.
More specifially:
- A separate method that would allow consumer to switch between HttpURLConnection and AsyncHttpClient. It should take in as an argument an AsyncHandler and execute it.
- Use of global thread pools. Since this is intended to be a library we can use for multiple HTTP requests, we would like to optimize on thread pool utilization.
Testing
Unit tests are required for the code created in this challenge. And if necessary previous unit tests must be updated to work with the new code as well.
You should also provide a CLI based program to test the API using different parameters.
Setup
- Send an email to lazybaer or wendell or post in the forums to request to be added to the ServiceFailover team on gitlab if you are not already a member
- Once added to the team, fork the repository, if you haven’t already, and work off of the 30049377-AsyncHTTPClient branch
- Add wendell and lazybaer as members of your forked repository.
Technology Overview
- Java 7
- JUnit
- HTTP(s)
- AsyncHttpClient
Final Submission Guidelines
Submission Deliverables
- Your code changes must be pushed to your private gitlab repo
- Submit a zipped version of your repo to Online Review
- Make sure your submission includes a clear guide to deploy and test / verify your submission
- Once picked as the winner and done with fixes, you're expected to submit a merge request to the specified branch
Final Submission
For each member, the final submission should be uploaded via the challenge detail page on topcoder.com.