Resending notifications from Apple

Regarding App Store Server Notifications V2,we are currently using Notifications V2 in a production environment. It is set up so that if the server receives the notification successfully, it returns 200 after about 30 seconds, and if an error occurs, it returns 400 or 500. However, the notification is being resent multiple times from Apple's server, at 1 hour, 12 hours, and 24 hours. Is it necessary to return the notification using Apple's API?

To find out the cause of this, please let me know the correct code to use when returning an HTTP status code in Java. Also, could the library version of the App Store Server API be related as another cause? Or are the settings in App Store Connect related?

it returns 200 after about 30 seconds

This is too long, and Apple's servers will time out. It should only be a few seconds at most, or at best under a second. We recommend all of the logic around processing the notification be done asynchronously from receiving the notification, to prevent long response times.

Resending notifications from Apple
 
 
Q