473,834 Members | 2,138 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subject/Observer & Model-Controller-View Question

I have a few questions about IssueVision (from WindowsForms) concerning its
scalability and performance. Rather, if I were to implement techniques
described here into another application, how would it perform, how well will
it scale, and what considerations should I be take into account?

First, let me say that I appreciate the work done to get this application
out there for me to look over. I continually refer to it and I think I am
ready to design an application using this model. Without samples like this,
I would not be enlightened enough to ask more question, so, thank you.

Let’s say we have the proverbial order entry application, in this case we
sell products and services. Each client application would need the ability
to work in a disconnected mode from time to time.

The application flow would resemble this:

Sales Rep Prepares a Quote
- Quote Header
- Date/Time
- Sales Rep ID
- Customer Information
- Billing Address
- Mailing Address
- Quote Details
- Product Kits (Grouping of Parts)
- Parts
- Services (Installation)
Sales Rep Converts a Quote to Sale (Workorder and Invoice)
- Order Header
- Date/Time
- Sales Rep ID
- Customer Information
- Billing Address
- Mailing Address
- Payment Terms
- Order Details
- Product Kits (Grouping of Parts)
- Parts
- Services (Installation)

Data in Synchronized with Central Data Store

Fulfillment Rep processes the order
- Opens Workorder Ticket
- Locates and freezes parts
- Backorder status
- Warehouse transfer request
- Check Service Rep Availability
- Assign Technician
- Monitor Workorder status

Billing Processes Invoice / Payments

Sales Rep Monitors Order Activity for this Sale

While Finance and Fulfillment would most likely be connected to the server
at all times, the sales force will be required to host a lot of data locally.
What’s more, it would seem that the sales rep would have to load a lot of
data into memory at one time.

1. Is there a way to minimize how much data is loaded into memory at a time
and still use Subject/Observer and Disconnected methods?
2. According to the documentation on Microsoft’s site about the
Model-Controller-View model, there is a propensity to code memory leaks into
the system, how do I avoid them? How do I test for them?
3. It would seem that to convert the GUI to a web application, it would
require some major code changes to make it work. For example:
a. Helper functions (While not required for a web client) use the
Application namespace, and therefore could not be included into a generic
assembly)
b. The only piece that you could isolate into a common assembly would be the
Controller (IssueSubject) and the patterns (IObserver, ISubject).

It appears as though the goal in IssueVision was to make a narrow data
model. I think I understand why it was designed that way, first of because
it is efficient, and second this was to demonstrate technologies in use.
However, in the case of our ordering system, our Orders table would have two
or three foreign keys (depending on how you model your data) Shipping
Address, Billing Address, and Customer. I have a few questions concerning
this:
1. Using the IssueVision model, how would one implement Transactions? I
would create a transaction object in my Version of the IVData object and
create a transaction as I needed. Would I still be informed of conflicts as
they occur and would they be only for when the client/server copies differ?
2. Using the dataadapter’s Update() method and handling the row updated
event for addresses, how would I know which address row represents the
mailing address and which represents the billing address (Assuming the
addressed is an autonumber int)
3. Using the IVData component implicitly instantiates all the data adapters
and command objects at once. Is there an overhead associated with that, is
there a better way? If I were to instantiate the objects that I need as I
need them, do I introduce other issues or affect performance?
4. Would it be more efficient to send/receive the data serialized than to
pass a dataset?

When loading the data, I can easily see that the parts catalog would be
lookup reference data. I can further see that this data only needs to be
updated on demand or periodically and not every time the application is
launched. I think I get that well enough.

When loading the open orders though, I have a question about the Orders
foreign key partner tables. In the case of addresses I would not need to
load that data while displaying the information in the data list. I would
need to load that data while working with the individual item though. Enter
the dataview and my next set of questions:
1. First, is there a better way then dataviews?
2. How do I cast a datarowview back to table.rows()?
3. When looking up the shipping address, I assume I would need to extend the
subject object to include a method for returning datarowview (dataview seems
to be the only object to allow filtering of loaded data), when updating this
information is the data still a member of the dataset?

When creating an application a bit more complex than IssueVision, what are
some considerations to take into account, pitfalls of development (besides
debugging a webservice), and finally is this the right model to implement for
an application larger than IssueVision?
Thank you for your time.

Jul 22 '05 #1
0 1382

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2245
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else that these buzz words were created by some geek who decided to take a stab at marketing? Knowing that to the backwoods manager who knows little of technology that new innovative names for old concepts would help to sale their products. I mean...
0
1370
by: Paolino | last post by:
Lately I was needing to use multiple inheritance to split behaviour of a class and modularize it. But the problem raises when the need is to add operations to a method already present in one of them from another. I think the technical solution is the use of 'super'. Then I tried to write a decorator for automatize the 'super' call,but I failed. Next solution is implementing the observer pattern on methods call. I'm pretty sure there...
3
2630
by: Michael Schneider | last post by:
Hello All, I am comming back to python after being away for several years. I would like to use weak refs in an observer pattern implementation. The problme that I have seems to be that weakrefs can't manage functions. ------------------- from docs: http://www.python.org/doc/current/lib/module-weakref.html
1
6454
by: Marcel Hug | last post by:
Hi NG ! I have already written a task about MVC and I tried to get the best informations together. I would like to implement the MVC pattern and it work on the way I did it. At first i know the MVC-ipmlementation from the JAVA by using the observer-pattern. I used an interface IObservable (AddObserver, RemoveObserver,...). My Model implemented this interface.
22
4753
by: Krivenok Dmitry | last post by:
Hello All! I am trying to implement my own Design Patterns Library. I have read the following documentation about Observer Pattern: 1) Design Patterns by GoF Classic description of Observer. Also describes implementation via ChangeManager (Mediator + Singleton) 2) Pattern hatching by John Vlissides Describes Observer's implementation via Visitor Design Pattern. 3) Design Patterns Explained by Alan Shalloway and James Trott
0
9796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10786
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10503
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5624
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.