Looking for some common functional scenarios in front-end development?

as detailed in the title:

faced with such a problem, how to understand it? I mean, functional scenarios are commonly used in front-end development, such as

  1. when a user logs in, the front-end token or sessionId is involved to record the information of the currently logged-in user, to verify and obtain subsequent information.
  2. with the above ordinary user login, there will be some other third-party account login, etc.
  3. also mentioned in Ruan Yifeng blog , for example: users with different identities have different ways of use (such as ordinary users and administrators), multiple users can collaborate, interact with the server a lot, or use WebSocket and so on

the reason for this question is that the projects in the actual work are currently handled by business logic, and I still touch the above items, so I want to know more after work, so that I won"t be at a loss when I encounter it next time. so dear gods, what other functional scenarios similar to the above have you encountered in your work? please give us some advice.

Jun.05,2022

Brother. OAuth2.0, get to know it.


raises such a question. Looking back on the development for so long, I realize that even cookie, localstorage and session are well used in field development. I just have heard and understood the principle, but there is not much in field use. In the future, it should be understood in combination with business logic and business scenarios.


this question is too broad, and the subject wants to know about the commonly used business scenarios. But the business of each company is different and the business logic is different. Even those general business logic can not be explained clearly by 01:30. I think this issue will be very popular if written in a series of articles:
say several scenarios that the subject is interested in can find out:
1, in many systems, there are many ways to keep the front and back context consistent. How can you keep the front and back context consistent?
2. How do you get the backend to notify the front end on web?
3. Whether the front end has context manager and event manager, for example, it can be used to send system messages in groups.
well, it's too much. I am very interested in this question, but the writing style is limited.

Menu