I'm undertaking wriitng a bridge application between a remote data
server API and multiple utility applications which pull and send data
to the API. The reason for a bridge is that the data server limits
connectivity to a single connection/account.
I already have the bridge->API connection functioning and now I need to
begin the multiple utilityApps->bridge connection. I have never
undertaken a task as this and I'm wondering what the best solution for
connecting these multiple apps to the bridge might be? Increasing speed
and minimizing latency is priority number one, so I don't mind doing
extra work to meet that goal.
Can anyone recommend a particular solution that I should consider?
Would a socket based approach be the best path? Thank you very much for
all input.
Lorn 5 1552
Lorn wrote: I'm undertaking wriitng a bridge application between a remote data server API and multiple utility applications which pull and send data to the API. The reason for a bridge is that the data server limits connectivity to a single connection/account.
I already have the bridge->API connection functioning and now I need to begin the multiple utilityApps->bridge connection. I have never undertaken a task as this and I'm wondering what the best solution for connecting these multiple apps to the bridge might be? Increasing speed and minimizing latency is priority number one, so I don't mind doing extra work to meet that goal.
Can anyone recommend a particular solution that I should consider? Would a socket based approach be the best path? Thank you very much for all input.
Just a thought: since C++ doesn't define sockets or any other networking
or [interprocess] communication mechanisms, you might want to consider
asking in a newsgroup for your OS. Just a thought...
V
Lorn wrote: I'm undertaking wriitng a bridge application between a remote data server API and multiple utility applications which pull and send data to the API. The reason for a bridge is that the data server limits connectivity to a single connection/account.
I already have the bridge->API connection functioning and now I need to begin the multiple utilityApps->bridge connection. I have never undertaken a task as this and I'm wondering what the best solution for connecting these multiple apps to the bridge might be? Increasing speed and minimizing latency is priority number one, so I don't mind doing extra work to meet that goal.
Can anyone recommend a particular solution that I should consider? Would a socket based approach be the best path? Thank you very much for all input.
Lorn
To keep the one connection/account whilst still allowing multiple
clients to connect, it sounds like the Message Dispatcher pattern is
what you need. http://www.eaipatterns.com/MessageDispatcher.html
There may be other integration patterns that suit you here.
HTH
Andrew
Hi,
In my view, you should concentrate on data consistency, menaing prepare
good classes which include a bit of error trapping, prepare recovery
and real time statistics functions like speed, number of units
transferred...
communicating with server is just not about using API and sending,,,its
about proper and optimized algorithmic approach...and in C++ you need
to be sure where and how these objects are created and destroyed as it
may very soon lead to heap corruption and memory loss...
sandSpiderX
ok, thank you all for your input. i didn't realize c++ had no native
communication functionalty... i suppose that makes sense as it would
differ per os. anyway, i'll take the suggestions to heart. thanks you
Andrew, for the link. i'm going to try this in the mfc group, as i now
realize it's most likely better suited there.
thanks again,
lorn
Lorn wrote: ok, thank you all for your input. i didn't realize c++ had no native communication functionalty... i suppose that makes sense as it would differ per os. anyway, i'll take the suggestions to heart. thanks you Andrew, for the link. i'm going to try this in the mfc group, as i now realize it's most likely better suited there.
thanks again, lorn
No problem.
I'd try comp.software.p atterns or comp.software-eng rather than MFC
group - unless you intent to use an MS library to do something.
Regards
Andrew This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: aj |
last post by:
hi
i am a newbi to python and developing a web application
what do u all think is the best application framework for developing
web application in python. I want a framework that supports
templates,database connectivity, is available for both unix and
windows ,and ofcourse is easy to learn.
Zope
Quixote
Draco or others
|
by: Ravindra |
last post by:
Well I installed the framework provided by microsoft ,
the problem is I am able to activate the smart tag in the doc file but when I Click on the Show Detils option in the information bridge the following errors are being dispayed
5:21:26 PM Error Message:
OperationInstance: SoapException
Stack Trace:
Microsoft.InformationBridge.Framework.ExecutionEngine.EngineException: OperationInstance: SoapException --->...
|
by: Davey |
last post by:
I am planning on developing an application which will involve skills that I
have very little experience of - therefore I would appreciate comments on my
initial design thoughts.
Overview on system:
I'm not going to divulge the exact aims of the application but the purpose
of it is to allow multiple client applications to retrieve data from a
database (on a db server) and feed this data into another Windows
|
by: Rajat Tandon |
last post by:
Hello Everybody,
Please guide me so that I can fulfill this challenging assisnment ...
I have been asked to "Restructure a Windows application" from scratch in 2
months. The existing application which is working but it is very heavy as no
proper application architecture and layering has been followed for this. It
was really hard to maintain (as I was maintaing it till now) .
First let me tell u a bit about my application ...
|
by: limeydrink |
last post by:
Hi all,
I want to create a mobile field worker data solution.
Let me explain...
I work for a company that has some software used by call takers to
enter information into a database about faults with electrical
appliances they manufacture, sell to customers, and then provide
maintenance contracts for.
| |
by: s_schutte |
last post by:
Here's my situation. I have an unmanaged C++ project that I am using
to interface with the Lotus Notes C API. I then have a managed C++
project in the same solution that functions as a "C++ Bridge". It
defines a function in a header that the native C++ library can call,
and then it forwards the calls along to a third project, which is a C#
DLL, and displays a System.Windows.Form.
So, I have:
Lotus -> Native C++ -> Managed C++ -> C#
|
by: Adrian |
last post by:
The code below was taken from an example.
All the "noise" in the example was thrown out.
This is supposedly according to the bridge
pattern. What in the code (which lines)
represent the bridge pattern (make this code
to be according to the bridge pattern),
and what is the advantage of employing the
bridge pattern? It seems "l'art pour l'art" to me.
Adrian
|
by: DaTurk |
last post by:
Hi,
I have a rather interesting problem. I have a unmanged c++ class
which needs to communicate information to managed c++ via callbacks,
with a layer of c# on top of the managed c++ ultimatley retreiving the
data. Presently all of the c++ code is still in .NET 1.1, so we're
using a _nogc bridge class wrapped in a _gc c++ class in order to
facilitate this interop.
But we've converted everything not c++ to .NET 2.0 and would love to
|
by: Pheasant Plucker® |
last post by:
Hi there,
Not sure if this is the correct ng and I am not a programmer so excuse me
but here goes...:-)
We have a custom application that has a hook or calls either the Outlook
calendar or looks in the Inbox
for a specific email and acts upon it if found.
This has worked great for over a year but when I updated using the usual
|
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,...
|
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...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |