Hello,
Locking a method could be done in code. Further clarification is needed on your use case to address your question better using App Engine. So you may post your full detailed question <https://stackoverflow.com/help/how-to-ask> on Stack Overflow <https://cloud.google.com/support/docs/stackexchange> since Google Groups are reserved for general discussions on Google Cloud Platform-end products. Nevertheless, a viable solution is to use different services for your different handlers as described here <https://cloud.google.com/appengine/docs/standard/java/an-overview-of-app-engine> and here <https://cloud.google.com/files/Cloud-native-approach-with-microservices.pdf>. For this, you can use a dispatch file <https://cloud.google.com/appengine/docs/standard/python/reference/dispatch-yaml> to override the routing rules and use different services based on the definition of the request, get/x. To process requests serially, you may also review the section “scheduling work outside of user requests” in App Engine’s How-to guides <https://cloud.google.com/appengine/docs/standard/java/how-to#scheduling-work-outside-of-user-requests>. If you need further architectural assistance, I would like to suggest contacting one of the supported partners <https://cloud.withgoogle.com/partners> to discuss about your application-specific design. On Wednesday, January 16, 2019 at 9:13:49 AM UTC-5, Arun Ram wrote: > > Is there a way to lock a method that processes a http request based on a > particular path parameter in GAE java? If get three requests get/a, get/a > and get/b for a path get/x where x is a dynamic path parameter. Is there a > way to lock the method to process get/a serially while it processes get/b > parallely. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3d667868-8320-468f-a54b-002f1ea058a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
