General message design

Source: Internet
Author: User

Our project needs to design a packet sending and receiving and parsing function. After carefully studying the packet format, we find it very tricky. Generally, the packet data comes from multiple tables in the database, and each row of the packet data comes from one row in a table in the database. If this is the case, it will be much simpler. However, there are exceptions in everything. Some database records need to be split into multiple lines in the message, and multiple data rows need to be merged into one report line.

As a result, it is very difficult to create a common message module, and the definition of the Message format will become very complex. It is not only necessary to define the Message format but also the relationship with the database.

We have also considered using stored procedures to generate data required by various packets. However, Oracle does not support the stored procedures for returning data sets.

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.