When is it appropriate to generate a red envelope?

Source: Internet
Author: User
Demand:
Add red envelope activity backstage. Important parameters are (total amount, number of times allowed to be forwarded, number of red packets to be generated per forwarding)
Front-desk user forwarding, each person forwarded once, to have a group of corresponding red envelopes to get others to collect (each forward to generate a batch of red envelopes).

Now I think, is my backstage add red envelope activity, press "allow the number of forwarding" and "to generate the number of red envelopes" to all the red envelopes are generated, and then wait for the front desk to forward the person to collect, or the front-end user forwarding completed after the generation of a good?

Initially prepare to use MySQL to store data, no longer go to redis storage red envelope data.

Reply content:

Demand:
Add red envelope activity backstage. Important parameters are (total amount, number of times allowed to be forwarded, number of red packets to be generated per forwarding)
Front-desk user forwarding, each person forwarded once, to have a group of corresponding red envelopes to get others to collect (each forward to generate a batch of red envelopes).

Now I think, is my backstage add red envelope activity, press "allow the number of forwarding" and "to generate the number of red envelopes" to all the red envelopes are generated, and then wait for the front desk to forward the person to collect, or the front-end user forwarding completed after the generation of a good?

Initially prepare to use MySQL to store data, no longer go to redis storage red envelope data.

Not exactly what you say the demand, because also to consider if the front desk is not enough or no one to receive the amount of time to deal with the situation, if the situation is not issued to return, then add activity in the background to complete the red envelope generation logic is the simplest, the background only need to request the database or cache OK.

If each activity has to send out all the amounts, then it can only be forwarded complete or active time to generate a red envelope.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.