Topic List |
Page List:
1 |
---|---|
Milkman5 02/04/18 11:07:07 PM #1: |
I have an app where I want it to delete items from the database even when the application is not running. how do I accomplish this?
I need a "server" program correct? That always needs to be running, deleting things from the database (based on conditions) let's say i want items to be deleted after 2 hours from the database. i need a program always checking the clock and deleting old data values, right? So what do I use if let's say I have a firebase database? Do I make a Node.js server application and connect it to the firebase and always have it running? Can I pay someone to always run the program? hosting? ... Copied to Clipboard!
|
Milkman5 02/04/18 11:09:05 PM #2: |
do I run a php application?
... Copied to Clipboard!
|
stone 02/04/18 11:09:35 PM #3: |
Can't you just set a time attribute for when you set that value, and when you start up the app again, check if it's been 2 hours and delete if it has? No need for a server to do that
--- PONG WAS REAL? I thought that was just a story parents told kids to scare them ... Copied to Clipboard!
|
DoctorVader 02/04/18 11:09:37 PM #4: |
They serve.
--- It all just disappears, doesn't it? Everything you are, gone in a moment, like breath on a mirror. - The Doctor ... Copied to Clipboard!
|
gandalfl0 02/04/18 11:11:41 PM #5: |
A server is just a computer. It depends what database and architecture you use. You can set a time to live on an entry that deletes it after a certain time. You can technically write all of it yourself, but it would be a waste of time. Unless it is just for fun/learning.
You can use a hosting service to hold your server like aws or azure. You can also just run it on a computer you have --- You see a wooden casket where I see a glowing portal. http://www.last.fm/user/rucus5 ... Copied to Clipboard!
|
Milkman5 02/04/18 11:16:09 PM #6: |
stone posted...
Can't you just set a time attribute for when you set that value, and when you start up the app again, check if it's been 2 hours and delete if it has? No need for a server to do that No. I can't have it done by the app on start up. It needs to be independent of the app runing ... Copied to Clipboard!
|
Milkman5 02/04/18 11:16:40 PM #7: |
gandalfl0 posted...
A server is just a computer. It depends what database and architecture you use. You can set a time to live on an entry that deletes it after a certain time. You can technically write all of it yourself, but it would be a waste of time. Unless it is just for fun/learning. how? ... Copied to Clipboard!
|
Tyranthraxus 02/04/18 11:18:07 PM #8: |
You scream and curse at them for weeks about why they're not working and then they start working because they just want the abuse to stop.
--- ... Copied to Clipboard!
|
Milkman5 02/04/18 11:27:07 PM #9: |
>_>
I guess im making a node.js server and hosting it somewhere Basically I need timed events on my database and I have a proximity feature that needs to be ready to send users a text message even when their app is closed there is a way around the latter where the sms sends from the person who is being tracked since the software has to be running on their phone, but it need to run just in case their phone dies or whatever happens ... Copied to Clipboard!
|
Tyranthraxus 02/05/18 1:16:05 AM #10: |
Milkman5 posted...
>_> I am not sure what the requirements are but it sounds like node.js is not what you want. This sounds like it's better handled through REST APIs. For your app, have it make an API call on its close event. --- ... Copied to Clipboard!
|
Topic List |
Page List:
1 |