The first scenario, the original login registration update user data is a separate 3 interface, then it is easy to think of the registration is not updated information, but also logged in (the change of course need to log in). According to Murphy's law, there will be problems sooner or later, where things can go wrong. Sure enough, 3 months after the launch of the product, the database has hundreds of users who are registered but have not updated the data but logged in. What's more, these users ' profiles have entered SOLR with some business logic lines, polluting data about nearby users ' business, causing people around them and querying users for blank data.
The second scenario, because the user edits a broadcast message or graphic material when the storage of graphics and text is not in accordance with the Convention is inserted in the text tag, and then the picture and the text ID is bound. Instead, use the JSON split record method. In fact, this is not a problem in nature, but the problem is that we use Ali's OSS services and our ability to intern is really a problem and I am too busy to review their logic. This is the case, the OSS made a chain of anti-theft, image acquisition is a time limit, so we have to the OSS image address to be placed on our server, an article may appear a lot of pictures, the primary school with the front end of the discussion of the result is actually a once to request ...
Get ready to work, write here, go back to the rest, and the final Solution and revelation
1. From the beginning of the product design, it is necessary to pull the front-end development and back-end development together to meet to facilitate the planning of the interface, in the early stages of product design must strive to make the interface concise and reasonable. So, how to be concise, how can it be considered reasonable? In fact, the two are a contradictory direction, concise requires a function of an interface, but the application of reasonable development requires a request to obtain as much useful information as possible. Then it is important to find a reasonable balance, especially when it is necessary to make the logic in the app once or as few requests as possible, so that it is easier to ensure the integrity of the data, otherwise it will fall into the mud of request and interaction.
2. When processing long text with the content of the picture, as far as possible to let the client to customize its format, the server side as far as possible to avoid interference in this thing. But the source of the picture should be traceable. The app according to the company's manpower to decide whether need to prevent hotlinking function, manpower if insufficient (such as landlord this time by the pit) then the anti-theft chain function is likely to become a workload outbreak of the place, should be tried to avoid.
Mobile App Server interface Development Inspiration 1