How do I create a bulletproof method to bind a string to a base string?
My service communicates with the server that manages the accounts.
- Each Account has a limit on the number of operations performed per month.
- I want to get around this cap by creating new accounts that are linked through the schema.
This is how it should work:
- The user creates an account "denzel" through MyService .
- MyService , in turn, proxies account creation to 3rdPartyServer
- User "denzel" checks his credit and MyService returns $ 45 (default limit for each user account).
- User "denzel" buys an additional $ 45 through MyService . MyService secretly creates (in the background) the account A in 3rdPartyServer , but manages the relationship between "denzel" and "A".
- User "denzel" checks his credit and MyService returns $ 90
Another way to manage the relationship is to add a counter to the original user ID. for example "denzel1", "denzel2", etc. It doesn't work, we don't want to prevent other users from choosing denzel1 or others in this series.
Has anyone faced this issue and had a solution to share?
+1
a source to share
2 answers
Why do accounts created automatically on 3rdPartyServer have to be based on the original username? You can also randomly generate them, and then easily manage them "in the house" so that the user does not even know about them. As George said , use a lookup table that allows you to cross-reference the user on your system with all of their generated aliases.
+2
a source to share