Advertisement
Guest User

JSON_problem

a guest
Aug 14th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.67 KB | None | 0 0
  1. A JSON over HTTP API is deployed at http://127.0.0.1:8083/msg. The goal is to performance test it. This involves making two requests.
  2.  
  3. The first request is an HTTP GET request to http://127.0.0.1:8083/msg that contains a header titled X-arun-Email-Id. This must contain your email address. The response will be a HTTP 200 (unless there's an error - if it's a 400 class error, you did something wrong; if it's a 500 class error, please let me know via email) and contain a JSON body which has the email id you sent as a header, as well as a uuid. Example:
  4.  
  5. 200 OK
  6. {
  7. "emailId": "arunsingh.in@gmail.com",
  8. "uuid": "fa674442-c513-4b1f-8dce-47f70307143c"
  9. }
  10.  
  11. The second request is an HTTP POST request to http://127.0.0.1:8083/msg. The post body must be JSON and must have two keys: emailId (exactly the same value as you sent before), and uuid (the value that was returned in the previous response). Example:
  12.  
  13. {
  14. "emailId": "arunsingh.in@gmail.com",
  15. "uuid": "fa674442-c513-4b1f-8dce-47f70307143c"
  16. }
  17. The response if successful will be a HTTP 200, with a body that reads Success. If you get a 400 class error you did something wrong. If you get a 500 class error, please let me know via email.
  18.  
  19. You are expected to make each of these requests 100 times and provide the following statistics for the response time of each API:
  20.  
  21. 10th percentile
  22. 50th percentile
  23. 90th percentile
  24. 95th percentile
  25. 99th percentile
  26. Mean
  27. Standard Deviation
  28. Please note that program must be concurrent. That is, you cannot make 200 requests in sequence. You should be making at least 10 requests at a time. Obviously, since one of the requests requires data from the previous response, you will have to do those in sequence.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement