473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 5322
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********************@giganews.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********************@giganews.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**************@TK2MSFTNGP09.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********************@giganews.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
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...
2
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...
13
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. ...
8
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...
17
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...
0
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
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...
1
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...

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.