通过网络界面自动批量发送短信
这更多的是关于应用程序的设计/效率,而不是语法 - 我需要创建一个发送一批文本的进程,这些文本将在调度程序上运行(自动批处理),但我还需要允许管理员发送手动批量(手动批量)或单个 SMS 消息(触发)。我最初的想法是构建一个服务器端控制台应用程序,可以使用参数执行来处理所有文本的发送,但我不确定这是否是最佳选择。我有点担心控制台应用程序运行的多个实例会产生冲突(我显然需要为其编写代码)。关于解决这个问题的最佳方法有什么建议吗?
这些批次将在循环中一次处理一个,这会将消息发布给操作员 (Twilio) 并将发送的消息记录在我们的数据库中。
This is more about the design/efficiency of the application rather than the syntax - I need to create a process that sends a batch of texts that will be run on a scheduler (automated batches), but I also need to allow an admin to send a batch manually (manual batch) or individual SMS messages (triggered). My initial thought was to build a server-side console application that can be executed with parameters to handle the sending of all texts, but I'm not positive if this would be the best option. I'm a bit worried about conflicts arising with multiple instances of the console app running (which I would obviously need to code for). Any suggestions on the best way to tackle this?
The batches will process one at a time in a loop, which will post the message to the operator (Twilio) and log the message in our database as sent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能取决于您的运营商。 这个有相当多的技术示例和文档。
It probably depends on your operator. This one has quite a lot of tech samples and docs.