What's new

Closed Tulong lang please ang hirap eh..

Status
Not open for further replies.

Ryuzaki27

Eternal Poster
Joined
Jul 30, 2016
Posts
501
Reaction
116
Points
273
Age
26
Sino po may alam 2 to 3 client comonekta sa isang server then mag add ng data sa server database?
 
pero ang better architecture would be gumawa ka ng web service (see about rest api). si api na bahalang magread and write kay db, while sa kanya kokonek sila client.
 
read about THREADS (and or RUNNABLE)...kung sa Java.
- Pero parehong concept din sa ibang programming language.

I think ang hinahanap mo ay what if there are 2 or more users that want to edit a database at the same time.
Or worst, what if there are 2 or more users that want to edit a particular record on the database table all at the same time.
- or in short "COLLISION"

Maraming approach dyan sa case na yan. One solution would be to FLAG or LOCK the data pag user1 ang nauna para walang makaka edit sa data na yan na iba. Or puwede naman, programmatically, compare timestamp of the data time, at kung sino yung latest time, yon ang masusunod.

Goodluck
 
Status
Not open for further replies.
Back
Top