Home > Software engineering >  Enterprise solutions to problems
Enterprise solutions to problems

Time:10-26

The recent problems to deal with a business hall with duplicate:
Hall reception multiple departments of different types of business, the user needs to go to the artificial window or self-service machine register and obtain the business registration number, and then, according to the call in order to handle the business hall early to take only a artificial window, register table directly from the database for each business department of the largest business, and then add 1 to generate the current, to the user, because the only one registered end, so there has been no heavy number, now after rectification, handle affairs department, to handle affairs more, so they increased the register multiple artificial register Windows and self-help terminal, so it appears at the same time in different terminal to send the same line of business, had double booked,
Now need to solve the problem, my idea is: make a special responsible for managing the business service program, and then each terminal to the service program for business, implementation way is to do with TCP/IP protocol, offer and register terminal call DLL library, DLL library and management business, service program communication interface functions,
Don't know my this thinking line line? You have any other plan can be recommended or supplied with relevant data instance, thank you,

CodePudding user response:


Not bad, the key to see what is that number machine system of language development, how convenient how to,
Idea is to take machine all network access number generated by a counter server, feeling a batch of HTTP interface implementation is simple,

CodePudding user response:

With the lock is solved

CodePudding user response:

May be in the database is better, cross-platform compatibility and system are likely to become more strong, and there are problems easier to debug

CodePudding user response:

Simple - Soft references 2 floor response:
solved using lock

With lock is no good, you how to use this lock the other window table?

CodePudding user response:

Dianhui
reference 4 floor response:
Quote: refer to the second floor Simple - Soft reply:
solved using lock

With lock is no good, you how to use this lock the other window table?

Do you have any misunderstanding on lock

CodePudding user response:

Data synchronization, the lock is OK

CodePudding user response:

To want what locks, each business separate queue is ok

CodePudding user response:

Look from the scene is not necessary to write their own a set of communication can be directly with multiple terminals (including artificial window for terminal) even the DB
Recorded in one table for each business ID/eps serial number of the largest number, each row of a business
Use database with row-level locks (various business are independent of each other) or table level lock can protect the terminal take more number of
Table level lock it's ok to write speed is very fast in a hall but more than a few hundred users do not perceive caton at all

CodePudding user response:

After the server receives the request, the request queue, FIFO ~

CodePudding user response:

What is the difference between this problem and processes the data synchronization is?
The public variables, or to a Shared resource
Locking is a basic operation
  • Related