/    Sign up×
Community /Pin to ProfileBookmark

Need logic behind multiple SMS/Push Notification/Email

Hi all,

I am doing web services for an Android application which sends push notification. Below is the scenario:

[LIST]

  • [*]

    I have 100s of customers registered on the website


  • [*]

    Each user has his own subscribers list


  • [*]

    Each user can schedule the push notification to be sent at a specific time
    I will be running a cron file which will check for the messages to be sent


  • [/LIST]

    Now I want to know that let’s say there are 5 users A, B, C, D, E

    1) User A has scheduled 10000 messages to be sent at 1 PM
    2) User B has scheduled 50000 messages to be sent at 1 PM
    3) User C has scheduled 15000 messages to be sent at 1 PM
    4) User D has scheduled 25000 messages to be sent at 1 PM
    5) User E has scheduled 30000 messages to be sent at 1 PM

    What will happen in this case?

    The cron will run every 1 minute and based on the descending IDs from the message table it will pick records

    So the loop will start at 1PM and will pick the record which was inserted in the end that is for User E
    Then next minute it will pick User D message which will start at 1:01 PM

    Like this the User A message will start at 1:05 PM but he has scheduled for 1 PM

    This is a scenario of just 5 users what will happen when 100s of users will schedule at same time?

    I need you guys to guide me and let me know a proper way to do it.

    how Bulk SMS/Email solutions works when they have 100s of users scheduling at same time?

    Any help in this regard will be highly appreciable…

    regards

    to post a comment
    PHP

    0Be the first to comment 😎

    ×

    Success!

    Help @jack007 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...