AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.10.2008, 00:06   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Microsoft Dynamics CRM Team Blog: CRM 4: Waiting Workflow VS Windows Service
Источник: http://blogs.msdn.com/crm/archive/20...s-service.aspx
==============

Guest blogger Ayaz Ahmad is a CRM MVP who blogs at http://ayazahmad.wordpress.com/.

Developing some service or workflow to handle some periodic tasks is a common task when creating a CRM solution. Last week, I was looking for the best way to handle periodic tasks such as sending reminders when creating tasks based on date/time, birthday notification and the like.

For example, I have an entity project schedule with thousands of records of this entity. For each of these I want to send email reminders. For each record I can have a waiting workflow which results in thousands of waiting workflows. Or, I can develop a Windows service that runs overnight and process records according to my criteria which includes sending reminders.

What about performance considerations for hundreds of waiting workflows versus one windows service instance running overnight? Here are some merits and demerits for both techniques:
1. Workflows are configurable with no code but we would need to create a configuration mechanism for Windows service and scheduled tasks.

2. We can control the best time to execute a Windows service while workflows are fired on the event matching time condition.

3. Any change in the logic can be rolled out with ease using Windows service during off peak time while waiting workflow remain in waiting as per old logic. So using workflows can create a sizable maintenance problem.

4. If the number of records are high then creating waiting workflows may cause a strain on the system and degrade performance when compared to Windows service.

5. If there is frequent update operation on the waiting workflow entity then every time a change occurs workflow becomes active and moves to a waiting state. This can cause a strain to your system.

Although waiting workflows will not consume any CPU or memory resources, the overhead of handling change and strain on system during peak hours make them less favorable when compared to using a Windows service. Personally I feel the control and maintainability of a Windows service is better than workflows, especially when you take all of this into consideration.

Cheers,

Ayaz Ahmad



Источник: http://blogs.msdn.com/crm/archive/20...s-service.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Microsoft Dynamics CRM Team Blog: Building Rich-Client Dashboards for Microsoft Dynamics CRM with Windows Presentation Foundation Blog bot Dynamics CRM: Blogs 1 31.03.2009 13:24
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM 4.0 Bookshelf Blog bot Dynamics CRM: Blogs 1 22.01.2009 04:46
Microsoft Dynamics CRM Team Blog: Highlight: Available downloads for Microsoft Dynamics CRM Blog bot Dynamics CRM: Blogs 0 05.11.2008 22:05
Microsoft Dynamics CRM Team Blog: Top 14 Microsoft Dynamics CRM Sites and Downloads Blog bot Dynamics CRM: Blogs 0 14.07.2008 13:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:45.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.