MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??
On 24 Mar 98 at 21:42, Vadim Tkachenko wrote:
> Chris Gray wrote:
> >
> > [Vadim Tkachenko:]
> >
> > :- You strictly divide the persistence engine from the logic;
> > :- You build the two-tiered system with the logic as a client and the
> > :persistence engine as a server;
> > :- You build them in such a way that doesn't require them both to be
> > :within the same binary (address space, whatever), or build the adaptor
> > :which will be within and will connect to the persistence engine outside;
> > :- Your problem is fixed, because as soon as you finish that, you don't
> > :have a limitation to run those thousands of threads on the same box -
> > :you can spread them through several servers.
> >
> > Some potential problems:
> >
> > - if multiple threads are updating the single image of the DB
> > (whether those threads are local or remote), then you need some
> > kind of consistency mechanism. If you use locks, then you are
> > vulnerable to a client vanishing when it holds locks - you will
> > have to detect that and rip the locks away.
>
> Sure, that's why there is a concept of a business logic - client doesn't
> hold any locks at all. Everything is split into transactions, and any
> possible locks are handled by the business logic.
>
Yes, yes, yes. An excellent way to look at this. Locking strategy
and transaction content ARE business logic. Business logic in a mud
roughly corresponds to real life activity. Throwing the spear,
opening the door, whispering, etc. Many servers resemble a
three-tiered system, driver/mudlib/client.
--
--/*\ Jon A. Lambert - TychoMUD Internet:jlsysinc#ix,netcom.com /*\--
--/*\ Mud Server Developer's Page <http://www.netcom.com/~jlsysinc> /*\--
--/*\ "Everything that deceives may be said to enchant" - Plato /*\--
- Thread context:
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??, (continued)
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Jon A. Lambert jlsysinc#ix,netcom.com, Sun 22 Mar 1998, 21:10 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 23 Mar 1998, 06:54 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
J C Lawrence claw#under,engr.sgi.com, Mon 23 Mar 1998, 21:42 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Vadim Tkachenko vt#freehold,crocodile.org, Wed 25 Mar 1998, 05:28 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Mon 23 Mar 1998, 07:07 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Ross Nicoll jrn#st-andrews,ac.uk, Mon 23 Mar 1998, 08:09 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Matt Chatterley matt#mpc,dyn.ml.org, Mon 23 Mar 1998, 18:05 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Vadim Tkachenko vt#freehold,crocodile.org, Wed 25 Mar 1998, 05:02 GMT
[ Other Periods
| Other mailing lists
| Search
]