这是我正在实施我的项目的正确方法 [英] Is it a right way how I am implementing my project

查看:73
本文介绍了这是我正在实施我的项目的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

您好我正在开展一个项目,客户必须在几天之后通过网络应用程序注册,必须通过短信或电子邮件向他发送某个警报。在注册时间提供了。对于这样的警报消息,我可以使用Windows应用程序/ Windows服务(意味着它应该自动工作)是我认为是正确的,或者在Web应用程序中有任何选项可以自动执行此类背景工作,如线程。 br $>




预付款,





此致,

Arun

Hello everyone
Hi I am working on a project where the customer has to register through web application after few days a certain alert has to be send to him through SMS or through E-mail which he has provided during registration time .For such alert messages I can use Windows Application/Windows Service (Means it should work automatically) is my thinking is right or any option is there in web application which do such back ground work automatically something like threading .


Advance thanks,


Regards,
Arun

推荐答案

[如果我理解正确的话]



我认为你需要在注册时间之后有一个事件T i

我建议你将注册信息保存在数据库中。

您可以拥有一个应用程序(本地应用程序而不是Web应用程序来回答您的问题),它将对数据库进行轮询以查看是否有用户发送SMS \ mail到。

将通知发送给用户并标记用户标记已发送的通知。

根据一个会计数几天的应用程序,对于许多用户来说似乎是一个非常糟糕的主意。虽然在数据库上进行管理也具有容错能力 - 这意味着如果您的服务器应用程序出现故障(崩溃或维护),它可以在关闭之前离开它。



祝你好运,

Edo
[If I understand you correctly]

As I see it you need to have an event Ti later than the registration time.
I would suggest you keep the registration information in a Database.
You can have an application (a local application rather than a web application, to answer your question) that will do polling on the DB to see if there is a user to send an SMS\mail to.
Send the notice to the user and mark the user with a flag saying that it was sent.
Depending on an application that will count several days, for many users seem like a very bad idea. While managing it on a DB is also crash-tolerant - meaning that if your server application goes down, (either crash or maintenance) it can pick up where it left before the shutdown.

Good luck,
Edo


根据我的经验,我建议你创建SQL服务器来完成这项工作。因为它比Windows服务或单独的应用程序更可靠。
From my experience I suggest you to create SQL server job to do this. because it is more reliable than windows service or separate application.


这篇关于这是我正在实施我的项目的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆