[OTDev] Should AA take place before the creation of a task?
chung chvng at mail.ntua.grTue Nov 30 01:43:08 CET 2010
- Previous message: [OTDev] AA using the Header 'Authorization'
- Next message: [OTDev] Should AA take place before the creation of a task?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear All, An idea about better handling of tasks and AA: Now before a task is created, the service asks the SSO service for permission. If A or A fails, an error report is returned to the user. Our idea is about creating and returning a task to the user with status 'PendingAA' (new) prior to AA. At this point the task is put in a queue where it is not yet executed but is pending for approval by the SSO service. This way, the client acquires the task faster and the connection is released immediately. In case of AA failure, an error report can be included in the task representation (the task will have status 'Rejected' - and not 'Error' which implies that the service was submitted for execution). So, the idea is about having two queues of different size: A queue for tasks pending for approval and one for task execution. Furthermore, the client has a better insight of what's going on monitoring the task's status. What do you think? Best regards, Pantelis P.S. Requests that are not expected to return a task, such as all GET requests, will inevitably have the client waiting for tokenid verification and no queue is needed.
- Previous message: [OTDev] AA using the Header 'Authorization'
- Next message: [OTDev] Should AA take place before the creation of a task?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list