img
Home > Candidate Patterns > Service Recurring

Service Recurring

How can services do a batch processing that runs periodically triggered by time event?

Problem

When there is need to do recurring job that will execute certain process with high load of data and notified specified SOA actors.

Solution

Creating recurring services framework that implements data pump loader, executor engine, and push notification services. Data pump loader is responsible to fetch data with some threshold load and send it to executor engine to do the batch processing. Every completed process will then sent to queue which will be consumed later by push notification services.

Application

Service recurring is defined with coarse grained services component consisting of data pump loader, executor engine, and push notification services. These three component communicated through messaging services

Impacts

Will give some extra load to the servers when batch processing happens. Give less effort for other activities then the business process implementation itself Standardized services process

Status

Under Review

Contributors

Masykur Marhendra

Problem

In commercial industry, there will always products to be marketed. Customer who wants to use the products must do the registration first especially for subscribed products. Marketer must do balance deduction based on price plan offered to the subscriber in periodical manner. This recurring activity often occurs on almost whole product. With service recurring pattern hopefully can give usefulness on all products that needs recurring.

img

Figure 1 - Every different product will be recurred with different services.

Solution

Create recurring services framework that implements data pump loader, executor engine, and push notification services. Data pump loader is responsible to fetch data with some threshold load and send it to executor engine to do the batch processing. Every completed process will then sent to queue which will be consumed later by push notification services

img

Figure 2 - Service Recurring architecture.

Impact

Services engine pattern will give some extra load to the servers when batch processing happens. Meanwhile, it can give less effort for other activities then the business process implementation itself. What we need to focusing is only on business process implementation which is how the executor engine will do. Then, we can also have standardized services process (including audit trails, authorization, and authentication)lementing the same fragments in both processes, they are reused in the process orchestration management tooling.

Case Study Example

In telecommunication industries, almost every day markets a new product. One of it is Blackberry Internet Services. To be able to use this service, customer must subscribe first through UMB or SMS. Customer can choose weekly or monthly services. After they subscribe, on the next period customer's balance will be deducted automatically whenever his/her balance still sufficient. This is where Service Recurring does the job. Load all subscriber number that registered , and then do balance adjustment according to the price plan that offered to each subscriber.

img

Figure 3 - Blackberry Services Recurring process begins with subscription process.