Click here to Skip to main content
15,920,704 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: How to Advertise a Machine's Presence Pin
jschell21-Nov-18 7:38
jschell21-Nov-18 7:38 
GeneralRe: How to Advertise a Machine's Presence Pin
Richard Andrew x6422-Nov-18 0:43
professionalRichard Andrew x6422-Nov-18 0:43 
AnswerRe: How to Advertise a Machine's Presence Pin
Kevin Marois5-Dec-18 6:23
professionalKevin Marois5-Dec-18 6:23 
QuestionVisualizing the learning Process of an A.I. – We need the source code and API of a simple A.I.-Program Pin
Member 1405553614-Nov-18 23:36
Member 1405553614-Nov-18 23:36 
AnswerRe: Visualizing the learning Process of an A.I. – We need the source code and API of a simple A.I.-Program Pin
Eddy Vluggen15-Nov-18 1:03
professionalEddy Vluggen15-Nov-18 1:03 
QuestionDoes a high focus on environmental sustainability restrict the progression of architecture? Pin
Member 1402203316-Oct-18 7:33
Member 1402203316-Oct-18 7:33 
AnswerRe: Does a high focus on environmental sustainability restrict the progression of architecture? Pin
OriginalGriff16-Oct-18 7:37
mveOriginalGriff16-Oct-18 7:37 
AnswerRe: Does a high focus on environmental sustainability restrict the progression of architecture? Pin
jschell28-Oct-18 12:14
jschell28-Oct-18 12:14 
QuestionManaging concurrency in Linq/SQL Pin
R191111-Oct-18 0:31
R191111-Oct-18 0:31 
AnswerRe: Managing concurrency in Linq/SQL Pin
Gerry Schmitz11-Oct-18 3:54
mveGerry Schmitz11-Oct-18 3:54 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191111-Oct-18 19:52
R191111-Oct-18 19:52 
GeneralRe: Managing concurrency in Linq/SQL Pin
Gerry Schmitz12-Oct-18 3:21
mveGerry Schmitz12-Oct-18 3:21 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191112-Oct-18 3:35
R191112-Oct-18 3:35 
AnswerRe: Managing concurrency in Linq/SQL Pin
Dave Kreskowiak11-Oct-18 4:21
mveDave Kreskowiak11-Oct-18 4:21 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191111-Oct-18 19:43
R191111-Oct-18 19:43 
GeneralRe: Managing concurrency in Linq/SQL Pin
Dave Kreskowiak12-Oct-18 1:58
mveDave Kreskowiak12-Oct-18 1:58 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191111-Oct-18 19:50
R191111-Oct-18 19:50 
GeneralRe: Managing concurrency in Linq/SQL Pin
Dave Kreskowiak12-Oct-18 2:01
mveDave Kreskowiak12-Oct-18 2:01 
PraiseRe: Managing concurrency in Linq/SQL Pin
R191112-Oct-18 2:56
R191112-Oct-18 2:56 
AnswerRe: Managing concurrency in Linq/SQL Pin
Eddy Vluggen11-Oct-18 4:52
professionalEddy Vluggen11-Oct-18 4:52 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191111-Oct-18 19:46
R191111-Oct-18 19:46 
AnswerRe: Managing concurrency in Linq/SQL Pin
R191111-Oct-18 20:07
R191111-Oct-18 20:07 
GeneralRe: Managing concurrency in Linq/SQL Pin
Eddy Vluggen12-Oct-18 0:20
professionalEddy Vluggen12-Oct-18 0:20 
GeneralRe: Managing concurrency in Linq/SQL Pin
R191112-Oct-18 2:59
R191112-Oct-18 2:59 
GeneralRe: Managing concurrency in Linq/SQL Pin
Pete O'Hanlon12-Oct-18 3:20
mvePete O'Hanlon12-Oct-18 3:20 
He's not being sarcastic. You are mixing two cases here:

The first case is handled through transactions which is where two records attempt to update the same record at the same time.

The second case requires more of an end user experience type of mindset and relates to the question, what happens when you have two people editing the same record but they save at different times? Consider a stock trading application. You ring trader A and tell him you want to sell a million dollars of stock. So, he gets your stock up and enters a sell order for a million dollars but then gets distracted. Now, you're watching the market and you see that selling that much stock is going to be a bad idea and you also see that you haven't sold it yet so you ring up the same trading company but get put through to trader B instead. Now, you tell trader B to just sell half a million dollars of this stock. That trader gets up the stock, sets it and processes the order and you have just sold half a million. Now trader A comes back from his very enjoyable lunch and notices that he hasn't placed the order so he presses Sell. What happens next is hugely important.

If your application treats each "transaction" atomically and just processes it, you have just sold 1.5 million dollars of stock when you only wanted to sell 1/2 a million. If your system is clever and checks the updates, it detects that another transaction has occurred after you started and prompts you. Hopefully this causes you to ring the customer and check whether they wanted to sell 1/2, 1 or 1 1/2 dollars of stock.

That's what Eddy was getting at.
This space for rent

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.