473,614 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need advice for Middleware

I have to write a middleware that could be see as a very
specialized Web server (based on threads and sockets)
I hesitate between C++ (speed) and C# (more elegant)
What is the performance penalty if I use C# instead of
native (not managed) C++ ? This software could have to
manage 100's of simultanous connections. Realist in C# ?

Thanks for your advice.
Nov 15 '05 #1
5 5336
Hmm, maybe it's a good idea to write a demonstrator in both, so you can see
the difference in performance.
The performance will increase with every new version of the .NET
framework...

An important aspect also is security. I assume your webserver needs good
security... this is far more easy to achieve in .NET as in C++.

Greetz,
-- Rob.

Calimero wrote:
I have to write a middleware that could be see as a very
specialized Web server (based on threads and sockets)
I hesitate between C++ (speed) and C# (more elegant)
What is the performance penalty if I use C# instead of
native (not managed) C++ ? This software could have to
manage 100's of simultanous connections. Realist in C# ?

Thanks for your advice.

Nov 15 '05 #2
Always use c#, donot use unmanaged applications. Unmanaged applications are
cool in a geeky way, but you will run into lot of code reuse issues.

Also try writing your Middleware on IIS as web services. Donot try to
recreate the wheel.
IIS uses threads/sockets internally and is highly optimized.
I have created pure win32 webserver/database server/middle ware from
scratch. Looking back it was wase of time.
Microsoft is actively implementing c# in all its software.
A well designed c# application will be as fast as a c++ application.

jay


<Calimero> wrote in message news:NY******** ************@gi ganews.com...
I have to write a middleware that could be see as a very
specialized Web server (based on threads and sockets)
I hesitate between C++ (speed) and C# (more elegant)
What is the performance penalty if I use C# instead of
native (not managed) C++ ? This software could have to
manage 100's of simultanous connections. Realist in C# ?

Thanks for your advice.

Nov 15 '05 #3

<Calimero> wrote in message news:NY******** ************@gi ganews.com...
I have to write a middleware that could be see as a very
specialized Web server (based on threads and sockets)
I hesitate between C++ (speed) and C# (more elegant)
What is the performance penalty if I use C# instead of
native (not managed) C++ ? This software could have to
manage 100's of simultanous connections. Realist in C# ?


I would say that there are many more advantages to
using C# over C++ the least of which is secure code
(no buffer overflows, etc). What little performance
difference there is can be made up for with hardware.
Hardware is cheap now. Up the processor from 2.0 to
2.5 Ghz and there you go.

The question really is, why do you feel the need
to implement some type of socket-based TCP
solution. That seems so 1990's. Web services are
the way to go. IIS is much better at handling
connections than anything you or I or most
people in this group could write, so why not
leverage what's already there and VERY well
tested?

-c
Nov 15 '05 #4
if not faster :D
--

Duncan McNutt
Microsoft Product Deactivation Team
--
"Jay Balapa" <jb************ @atginc.com> wrote in message
news:#h******** ******@TK2MSFTN GP09.phx.gbl...
Always use c#, donot use unmanaged applications. Unmanaged applications are cool in a geeky way, but you will run into lot of code reuse issues.

Also try writing your Middleware on IIS as web services. Donot try to
recreate the wheel.
IIS uses threads/sockets internally and is highly optimized.
I have created pure win32 webserver/database server/middle ware from
scratch. Looking back it was wase of time.
Microsoft is actively implementing c# in all its software.
A well designed c# application will be as fast as a c++ application.

jay


<Calimero> wrote in message news:NY******** ************@gi ganews.com...
I have to write a middleware that could be see as a very
specialized Web server (based on threads and sockets)
I hesitate between C++ (speed) and C# (more elegant)
What is the performance penalty if I use C# instead of
native (not managed) C++ ? This software could have to
manage 100's of simultanous connections. Realist in C# ?

Thanks for your advice.


Nov 15 '05 #5
Thanks for your comment.
There are several reason why I want to use sockets:
- I want to merge the web server and the app (cgi) into the same app.
- I think I'll get better performance if the web server and the app are
merged.
- It is not only request/answer scheme, but also real-time events (alarms,
security, rights check...)
- Non IT people may have be able to install the whole app, so install is
simpler if no web server to install.
- People who install it do not even have to known what an IP address is.
- Among our customers, many have no server, only peer to peer network.
- The clients are very light (it is the goal) written in C++ (from Win 95 to
XP), so no web service here.
Nov 15 '05 #6

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

Similar topics

9
1776
by: Sam Watson | last post by:
Hi, I could use a little help with a project i'm going to build. I know I want to use python and wxWindows but thats about all I know. The client will be linux or windows. The server will be linux. Basically, its a client/server app with a rich GUI client. The big catch is I want to be able to run the client/server remotely across the web in a secure fashion. I sort of want to stay away from a web server based solutions because they...
2
2350
by: Alex | last post by:
Subject: Looking for an XML (database-based) Query Reporting Tool/advice First off, let me apologize if this thread is somewhat off topic... PLEASE REPLY TO: xml@solex-bi.com I am looking for a way to query XML documents stored in an Oracle 9i database, contained in an unstructured CLOB column, much like one would with a traditional BI query reporting tool, but using XPath or XQuery
13
3461
by: David Eng | last post by:
Finally, the C++ standard committee realizes the importance of middleware and distributed computing. The committee now focus on C++ extensions for ISO CLI, the Microsoft middleware platform. Sadly, they chose the wrong middleware platform. Microsoft has notorious application software. They never produce a true enterprise level software. Most of their software products target small companies. However, the strength of C++ is it can...
8
4110
by: Dhanvi | last post by:
Hi Everyone, I am working on an application at my workplace that is a classical example of an applciation that would need middleware to connect various applications.. but I was looking for open source / free middleware packages, that I can use. I have done some searching over the web ( sourceforge,google ) but havent found that many open source implementations for middleware. I have an application that needs to communicate with other...
17
2633
by: IanIpp | last post by:
We have a 3 month old quad processor/dual core server running SQL Server 2005 and already it is getting close to hitting the CPU wall. An 8 way CPU box is prohibitively expensive and out of the question. I am looking desperately for a way to TRULY scale out SQL server...in the same way that IIS can be scaled out via App Center. The "in the box" solution for SQL Server 2005 scaling out is the DMV. Unfortunately this solution makes...
0
1208
by: richmoore44 | last post by:
Hi, I've just written a python WSGI middleware class to mitigate XSS flaws, it's released under the python license. I've attached the docs below. Cheers Rich.
0
1629
by: suppyzw | last post by:
Hello everyone I have to impliment a new barcode system in a warehouse. Meaning i have to replace pre-existing sacnners and the middleware that feeds into a SQL database. The Wifi coverage within the warehouse, is not a problem. The warehouse uses High Gain antennas at 2.4GHz on the 802.11b standard from a number of Acess Points. These AP's operate on a Ethernet based network with TCP/IP as the communication standard The scanner that...
1
1867
by: suppyzw | last post by:
Hello everyone I have to impliment a new barcode system in a warehouse. Meaning i have to replace pre-existing sacnners and the middleware that feeds into a SQL database. The Wifi coverage within the warehouse, is not a problem. The warehouse uses High Gain antennas at 2.4GHz on the 802.11b standard from a number of Acess Points. These AP's operate on a Ethernet based network with TCP/IP as the communication standard The scanner that...
4
2113
RedSon
by: RedSon | last post by:
I'm doing a bit of bluetooth programming and I am writing some middleware to make developing applications easier. The BT driver is implemented as a simple serial driver so its like OpenFile and WriteFile and ReadFile. So I get a notification from the module that there is a phone that wishes to make a hands free profile connection to my device. It also give me a big byte array with some information about the phone that is requesting to connect....
0
8180
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8130
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
8623
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
8429
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...
0
7091
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4050
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...
1
2566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1423
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.