What is the difference between Java Web Background development and mobile app background development? How do they communicate? __web

Source: Internet
Author: User
Tags java web
1. The difference is basically the same, SSH can also for mobile phone app development backstage. In fact, for background development, the principle is similar. But the app's background development and the web is not the same as the transmission of data format is not the same, generally speaking, Web Access after the return of an HTML page, a small part of the JSON format, and the General app background development of most directly in the JSON format data (also have not JSON format, Look at the selection of items, but generally JSON, and a few will return directly to the HTML5 page.
There is also a difference in logon authentication and data encryption, the general Web is using session to verify the login status, and the app uses token to verify the login status (token is its own defined and user ID-related encrypted string, incoming background query user information from the database). And if security requirements are high, the app may encrypt data when it transmits data, and the Web generally does not, and web encryption typically uses HTTPS.
As for the development environment of Android and iOS, that means app development, not backstage. There is no essential difference between the app's background and the Java Web's background. One of the apps ' backgrounds can be provided to Android, and it can also be provided to iOS, which is to insert data from the app after it has been submitted to the database and then to the app after data processing from the database.

2. Communications Token token Communication token is a user-defined arbitrary string. After successfully submitting the developer custom string, the token value is saved to the app backend. Only the user and app backstage know this string, which means only the app backend and the user knows this string. So token became the key between the two, allowing the daemon to confirm that the request was from a user or a malicious third party.
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.