We're using Google AppEngine Standard on Java 8. I've seen server time outs contacting UA. I'm implementing the Java doc here: https://docs.urbanairship.com/api/libraries/java/. It gave the basics, but no best practices. To be exact, should I create UrbanAirshipClient once or every time I create a request? Seems like the server is running out of connections.
Didn't find what you were looking for?
New post-
Hey Rick,
We don't have a Java specific best practices, but you can check out these general API best practices:
https://support.urbanairship.com/hc/en-us/articles/213491283-Best-practices-for-using-the-API-and-why-you-should-log-your-activity
https://support.urbanairship.com/hc/en-us/articles/213492143-Best-practices-for-500-and-503-API-errorsTo answer your question, you should create the Client only once, not for every request.
Jay M.
Urban Airship Technical SupportComment actions
Please sign in to leave a comment.
Comments
1 comment