Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9712

How is invite link generated? [closed]

$
0
0

Say I have a social website with a user DB table. Later I decide to introduce an invite/referral feature by adding a new invite_link field to the user table. I am wondering how is the new field typically populated:

  1. Update the backend so that the invite_link value is generated upon new user registration. Then do a batch update for all legacy users. Finally update the frontend to expose the invite link to users.
  2. Use lazy loading in the backend instead, i.e. fetch the invite link or generate one if empty for all users.

Which is a better or more popular approach? Thanks in advance!


Viewing all articles
Browse latest Browse all 9712

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>