| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> |
| 2 |
<HTML> |
| 3 |
|
| 4 |
<HEAD> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="../acedocs.css" |
| 8 |
title="Style sheet for general ace documents"> |
| 9 |
|
| 10 |
<title>ACEDB - in the Long Term</title> |
| 11 |
<meta name="keywords" content="acedb, future, plan, strategy, changes"> |
| 12 |
<meta name="description" content="Thoughts/ideas about how Acedb will develop in the future."> |
| 13 |
|
| 14 |
</HEAD> |
| 15 |
|
| 16 |
|
| 17 |
<BODY> |
| 18 |
|
| 19 |
<h1>ACEDB - in the Long Term</h1> |
| 20 |
|
| 21 |
<A name="intro"> |
| 22 |
<FONT color="blue"> |
| 23 |
<H2>Introduction</H2> |
| 24 |
</FONT> |
| 25 |
</A> |
| 26 |
<p>Probably most of the items on this page will be either major coding efforts |
| 27 |
or will reflect some probable change in the genome mapping community or |
| 28 |
computing industry (e.g. the rise and rise of Windows/NT ??).</p> |
| 29 |
|
| 30 |
<A name="windows"> |
| 31 |
<FONT color="blue"> |
| 32 |
<H2>Windows support</H2> |
| 33 |
</FONT> |
| 34 |
</A> |
| 35 |
<p>In the longer term serious consideration needs to be given to the long term support |
| 36 |
of windows platforms. This could be done in a number of phases: |
| 37 |
<OL> |
| 38 |
<LI>Support windows as a client only, with the database still on Unix platforms. |
| 39 |
Initially support could be via a Java or perl based application to avoid the |
| 40 |
need to learn windows like calls. |
| 41 |
<LI>Port the server to windows separately from the clients. |
| 42 |
</OL> |
| 43 |
|
| 44 |
<A name="threading"> |
| 45 |
<FONT color="blue"> |
| 46 |
<H2>Threading</H2> |
| 47 |
</FONT> |
| 48 |
</A> |
| 49 |
<p>Currently there is no part of acedb code that is threaded. The only place that "overlapping" |
| 50 |
execution takes place is in the acedb server when a client makes a very large request. In this |
| 51 |
case the server chops up the request and only executes and returns a portion |
| 52 |
at a time to the client.</p> |
| 53 |
|
| 54 |
<P>There are three major reasons for threading an application: |
| 55 |
<OL> |
| 56 |
<LI>To increase throughput |
| 57 |
<LI>To increase responsiveness of GUI applications (e.g. netscape) |
| 58 |
<LI>To simplify code where several tasks may need to be handled 'simultaneously' (perhaps |
| 59 |
the overlapping mentioned above would be an example of this). |
| 60 |
</OL> |
| 61 |
|
| 62 |
<P>There are two major parts to threading acedb code: |
| 63 |
<UL> |
| 64 |
<LI>The acedb kernel |
| 65 |
<LI>The graphical applications |
| 66 |
</UL> |
| 67 |
|
| 68 |
<p>The major reasons for threading the kernel are to increase throughput and perhaps to make |
| 69 |
some of the handling of multiple clients conceptually easier. Note that throughput may be |
| 70 |
servicing a large request for one particular client (e.g. a large query search in parallel) |
| 71 |
or lots of smaller requests for multiple clients. For the acedb GUI applications |
| 72 |
the major reason would be to allow the GUI to remain responsive while perhaps waiting for data |
| 73 |
from a network connection.</P> |
| 74 |
|
| 75 |
<p>Threading will require a number of preliminary steps: |
| 76 |
<DL> |
| 77 |
<DT>introduction of tighter layering |
| 78 |
<DD>Although a large part of acedb is now in self contained libraries, there is still |
| 79 |
a large body of code that is not layered. Much of the kernel code needs to be more strictly |
| 80 |
layered to allow different parts of it to be threaded. This is an important preliminary step |
| 81 |
towards threading because it will reduce the linkage between different areas of code to |
| 82 |
well defined interfaces. It will also reveal which layers can be reentrant and which by |
| 83 |
their nature cannot. |
| 84 |
<DT>Making the base libraries reentrant |
| 85 |
<DD>Substantial recoding of base level libraries needs to take place because |
| 86 |
of the extensive use of static data and lack of context passing for the various packages. |
| 87 |
This will be fundamental because the base libraries are used throughout acecb code and they |
| 88 |
must be fully re-entrant, or if not then they must at least be serially reusable with mutex locks |
| 89 |
around vulnerable code. |
| 90 |
<DT> |
| 91 |
<DD>The acedb kernel needs to be analysed for places where threading can improve performance |
| 92 |
perhaps by overlapping disk I/O or by overlapping tasks that are waiting for network/client input |
| 93 |
or by using multiple threads for tasks that are inherently parallel. |
| 94 |
</DL> |
| 95 |
|
| 96 |
|
| 97 |
<A name="C++"> |
| 98 |
<FONT color="blue"> |
| 99 |
<H2>Conversion from C to C++</H2> |
| 100 |
</FONT> |
| 101 |
</A> |
| 102 |
|
| 103 |
<p>Currently acedb is written in C, this is because work on acedb was started before robust |
| 104 |
implementations of C++ were generally available on a wide variety of platforms. Work has |
| 105 |
continued to be in C and there is some sense to this in that the standard ANSI C library |
| 106 |
is available on all unix platforms, windows and some versions of the MAC, providing a |
| 107 |
constant programming environment. C++ libraries are not usually available unless the C++ |
| 108 |
compiler has been installed. Perhaps even more importantly the C++ Standard Template Library |
| 109 |
(STL), which would provide a major incentive for swopping to C++ is even less generally |
| 110 |
available. Never the less C++ has much to offer that acedb could make use of. Large parts of |
| 111 |
the acedb code use 'object' like concepts and deal with 'object' like data that could more |
| 112 |
usefully become fully fledged objects, blah, blah, blah. Currently this is all pipe dreams, |
| 113 |
there aren't the resources/experience to do much about this....pity.</p> |
| 114 |
|
| 115 |
|
| 116 |
<A name="client_server"> |
| 117 |
<FONT color="blue"> |
| 118 |
<H2>Client-server only</H2> |
| 119 |
</FONT> |
| 120 |
</A> |
| 121 |
|
| 122 |
<p>Currently there are two models for applications accessing databases: |
| 123 |
<OL> |
| 124 |
<LI>The application accesses the database directly and makes whatever |
| 125 |
calls it likes to access the database. |
| 126 |
<LI>The application is a client and can only make certain client requests |
| 127 |
to a database server. |
| 128 |
</OL> |
| 129 |
<p>It may simplify coding/maintenance etc. to have only one model, the client/server one. |
| 130 |
Performance issues could be solved by providing different methods of communication between the client |
| 131 |
and server: if both are on the same machine, shared memory could be used for speed, if on different |
| 132 |
machines then sockets or whatever could be used.</p> |
| 133 |
|
| 134 |
<A name="dbase"> |
| 135 |
<FONT color="blue"> |
| 136 |
<H2>A different database</H2> |
| 137 |
</FONT> |
| 138 |
</A> |
| 139 |
|
| 140 |
<p>Should acedb be replaced with oracle ? should users be able to keep their data in an |
| 141 |
Oracle database but have a transaction supplied which extract acedb like data, this |
| 142 |
way oracle would deal with concurrency/backups/disasters etc but the front end could |
| 143 |
still work on acedb like data.</p> |
| 144 |
|
| 145 |
</body> |
| 146 |
</html> |
| 147 |
|