in the advertising system, setting a point in time will automatically push messages to users. What is the general principle of implementation
in the advertising system, setting a point in time will automatically push messages to users. What is the general principle of implementation
simply means that you add a scheduled service (crontab), to the server, such as 5 o'clock every day, and then you write a program to send an email to the specified user, and then tell the server to trigger the program at 5 o'clock every day. Then the server will check every second to see if it is 5: 00 sharp, if not, ignore it, and if so, trigger your program. Then your program is responsible for screening users to send emails.
queue to schedule tasks
you have made a ticking time bomb. This bomb is a blank bomb, which does not cheat the dead but implements a function to push the latest news from the news table in your database to the users in the target table. The bomb is energetic, excited and waiting for "boom" at any time, while you tell the bomb that it can only "boom" at 5 o'clock every day. The bomb waited for the time to go by every day, and he couldn't wait to "boom" as soon as he arrived at 5: 00. Why did he keep track of the time so accurately? because the arms factory hired a regular inspector, who was paid a high salary, he always took a stopwatch proofreading list and found out which bomb in the list should be "boom." when he sat on a rocket spaceship made for him by the arms factory, he quickly informed the target bomb, "it's time for you to perform the real technology." And then the target bomb just "boom".
set a time point and call a third-party push tool such as YouMeng's interface, and the latest information will be pushed to the user
it's not clear what the point of your question is.
I'll tell you what I know. Generally, there are two ways to push a message on a regular basis, one is that the client downloads the message content in advance and displays it as soon as the time is up, and the other is through http passive polling or websocket active push, which is nothing to say. If you are asking how to implement the backend, it is also divided into two situations. If it is the first one mentioned above, there is no big problem. You can reply to the client each time that you need to push messages that need to be pushed regularly in the future. The latter is almost the same as the implementation of the chat room. As soon as you have a push plan, just leave the task in the task schedule queue.
requirements: Connect to a known remote websocket server, read its incoming messages and display them on the page in real time. but the address and login information of the remote server need to be kept secret, so you can t connect to the server d...
when the front and rear ends are separated, the front end provides API access to the data through the back end, but this is achieved through @ API, that is, giving the front end a URL, if there is a folder of static resources in the back-end project, how...
token is an irregular string. Generally speaking, what is the basis for encryption? For example, is there a mature solution for users such as id,url? ...
the current products are mainly focused on background information management, so a relatively modern background management interface is needed. background data are mainly presented (menu trees, various tables and editable) and a large amount of data, s...
I started a service under freep under home, so how should I access the content under this service? ...
are jade and jsp the same thing? what are the advantages of templates such as jade over vue,react? What kind of scenarios are suitable for? is jade server rendering? ...
currently, laravel has been used to do Wechat applications, and the front-end code is also in the laravel project, which needs to be changed from html+js to blade template. the html+js developed at the front end must also be converted and incorporated ...
encountered a problem today I have a system, which is role-based permission control. the front end naturally controls the view that should be displayed according to the role. but in order to prevent others from directly using httpclient access, then...
background: 1,springmvc(javaweb), , .jspajax,; 2,java,,; 3,(),(svn); question: 1,(),,,; 2,,?,; 3,java?? ideas: vuejs+elementui,axiostoken,vue-router,. webpack,tomcat; I need your answers: 1,2? 2,3; 3...
in a background management system like this, we can switch the content on the right by clicking on the menu on the left, so how can we load the different content on the right without using the frame? Was it written dead in the first place? ...
as the title at the beginning of a new project, when the front end uses a data-driven front-end framework, much of the front-end work depends on the back-end interface format. So you have to wait for background development, while the front end has nothi...
the new node project is very simple, just app.post ( " upload ", router.doPost); app.get ( " getat ", router.doGetAT); actually wants to expose these two interfaces. my public network ip of Aliyun is http: 112.74.191.12. I deployed a project b...
use kibana to monitor the performance of each module, monitor the rendering time of each module, and make a bar chart. The vertical axis is the rendering time and the horizontal axis is the module name, because the module names stored at that time are al...
in the separation of front and rear ends, and in the design of back-end interfaces, such as { "code":1, "data":{} } The value of code, 1 means that the request succeeded or failed in response to the code request? Look at se...
spring boot restTemplagte access https can be accessed normally on window, Ali centos access timed out the environmental background of the problems and what methods you have tried related codes restTemplate @Bean public RestTemplate restTemplate(O...
there is a problem in the WEB project, which requires the background to refresh and monitor the data in the database in real time. every time FLASK starts, it starts a thread to monitor the order placed by the customer and whether the order has been pai...
I am a rookie. I also read a lot of http materials on the Internet, but I only saw what he wrote, but I didn t understand what he meant again. The problem is this: currently the cross-domain problem is solved by setting Access-Control-Allow-Origin: *...
I have a django rest framework project that has some API interfaces exposed to users. Now we need to automatically test the correctness of these interfaces every day. Is there any way to do this? ...
how can the front-end iOS, back-end php, track all variables at the same time when running in the background? the foreground sends the data to the background, how can the background see the changes of each variable when executing several functions, and ...
follow the example on the Internet to write that you can t roll back? db.col.find () { "_ id ": ObjectId ( "5b845237d63ff6fb1220861c "), "name ": "ccy "} { "_ id ": ObjectId ( "5b8453f5cf6edbf8ffc60a95 "), "name ": "ssy "} { "_ id ": ObjectId ...