i started a webapp with codeigniter (PHP + JS). The aim is to post messages to a global messageboard.
Now a user should get informed of a new message dependent on his or her settings.
Lets say someone posts a Message with a certain city, or gps-Data in it. Only people with the same city or close to the area should get informed - As a User I want to set a distance and my location. Same city - show notification.
Also if I am a friend of a user and in my settings I chose "see all messages from friends" - no matter what city or what gps data is in the message of my friend - I should get a notification.
What would be the propper way to realize this requirement? I know php is not the right approach and I dont want to permanently send requests to the webserver and check for new messages.
I read something about nodejs - could this be the best way to solve the problem? Do I need to create my project all over again or is there a way to use php and node together?
Hopefully someone has a good Idea :) Thanks in advance..
via user1809233
No comments:
Post a Comment