AnanthRK
unread,Nov 3, 2011, 8:01:59 AM11/3/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
We are writing our first application using Play and have been enjoying
the experience so far.
The application is a REST API used to query & update several entities
in our Database (Vertica). In addition to this, we also have (long-
running) jobs that keep the tables up-to-date by updating their status
by querying a different database. When we deployed this app in
production, most requests come back within milliseconds, but there are
cases when the same requests take minutes (yes, minutes!!) to return a
response. Since I am new to Play, I would like to understand the
following:
(1) How do I track the lifecycle of a request so that the root-cause
can be identified?
(2) Will the background jobs be a reason for this behavior? If yes,
what is the right way to implement them. For now, they are scheduled
to run 3 times in an hour and directly update the models. Thus, they
are not part of the request/response flow.
(3) Since the jobs are updating the models, would a request that
involves querying the same model be blocked, thus causing this
latency?
Any pointers in tracking down this problem is much appreciated.
Thanks,
Ananth