Slashdot Mirror


.NET or CORBA?

DavidTurner queries: "My company is developing software to integrate various hardware systems and present a unified interface, plus system-level interaction. Essentially, an object hierarchy plus supporting services - clients, servers and drivers. We wish to replace our proprietary protocol with a standardized distributed object system. The choice has boiled down to .NET versus CORBA+GTK. We want interface contracts, OpenGL support, and embeddable forms (widgets). We also want rapid development. Which would you choose? Has anyone actually field-tested the relative merits of the two paths?"

24 of 75 comments (clear)

  1. Python? by Anonymous Coward · · Score: 2, Informative

    Have you considered python? I'm learning it now, but I've read some great articles about how companies rapidly develop amazing systems with Python. Yahoo! Mail I believe was originally Python, and then ported to C++. It just might fit the bill.

  2. Cocoa + Distributed Objects by RevAaron · · Score: 4, Interesting

    DISCLAIMER: You may not be interested in this combo because of a prejudice or (more likely) an existing hardware investment.

    Mac OS X + Cocoa may be an option worth exploring. Users of the Objective-C language and the Cocoa libraries find it quite excellent. I'm primarily a Smalltalk programmer, used to the very supportive development environment and mature and full-featured library provided by it... Which generally makes me hard to impress. However, in a couple dives into OS X application development, I have to say that it is a very nice setup.

    Part of the default Cocoa libraries is a pretty mature Distributed Object framework.

    Then again, for something as simple as distributed objects and a UI, I have everything that I need to do that already in Squeak. I can use protocols like XML-RPC or SOAP in this setting, or a faster protocol that is more specific to Smalltalk. :)

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
    1. Re:Cocoa + Distributed Objects by RevAaron · · Score: 2, Informative

      Yes, it is a part of OpenStep. I wouldn't say that this erases hardware concerns though- asking them to migrate to OpenStep would be far more silly (and quite possibly far more expensive) than the switch to Mac OS X, even with new Mac hardware. However, you may have meant to suggest a switch to Linux with GNUstep. And yup, GNUstep supports the same DO API, and it's working now.

      --

      Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  3. .NET | CORBA isn't the solution by Anonymous Coward · · Score: 2, Funny

    You obviously aren't programming in the right language. Don't worry about choosing the right object brokering architecture. Just program in Scheme and all your problems will be solved.

  4. Start with some research by Bastian · · Score: 5, Insightful

    No, really. If you don't even know if either .NET or CORBA+GTK supports OpenGL, widgets, and interface contracts, you don't know enough about either architecture to make any kind of informed decision, regardless of what the /. crowd says.

    Personally, I'd be inclined to use CORBA+GTK for the simple reason that I don't like to be tied to any one platform, and last I heard Mono is not quite mature enough to make it a viable implementation of .NET for non-Windows platforms.

    But if .NET is even an option, you're probably working at a fairly dedicated Windows shop, so that's a moot point. . .

  5. Our similar dilema and what we ended up with... by maunleon · · Score: 3, Interesting

    We had to choose between .NET and J2EE. We ended up with .NET. The decision was purely financial. When we put down on paper how much it would cost in software purchase in order for us to equip our team and deploy our solution, it turned out that we already had everything we needed for .NET

    Java enterprise development did not look cheap at all.

    Of course, you may be starting from a different point. We already had VS.NET licenses, fully licenses MS servers, etc.

    As for Corba vs. .NET, I believe .NET is a more elegant solution. That is just my opinion.
    Corba programmers are hard to come by, and .NET is still new. However, anyone who understands the concept of an enterprise app should pick up .NET easy. I believe CORBA is much harder to pick up for a programmer being introduced into a development team.

    1. Re:Our similar dilema and what we ended up with... by farnsworth · · Score: 4, Interesting
      We had to choose between .NET and J2EE. We ended up with .NET. The decision was purely financial.

      cost of ide (eclipse/emacs) $0

      cost of servlet container (tomcat) $0

      cost of ejb container (jboss) $0

      cost of compiler, built tools, version management (javac, ant, cvs/subversion) $0

      I'm curious how you evaluated .net to be cheaper than this. really, I am. what did you need to do that's not supported by these tools?

      --

      There aint no pancake so thin it doesn't have two sides.

    2. Re:Our similar dilema and what we ended up with... by jsse · · Score: 4, Insightful
      nah, usually it's not the case:

      cost of ide (websphere application developer) $5,000 *each*

      cost of servlet+ejb container (websphere application server enterprise version) $10,000

      cost of design tools, version management (SELECT Enterprise, Clearcase, etc.) $15,000

      cost of report server(you missed that one, it's pretty important for enterprise depolyment) $40,000 (java compliant report servers are very expensive)

      It's not like management are pathetic sadist who love to be slaughtered by software vendors, they've other concern like learning curve, enterprise level support, guaranteed availability and reliability.

      In fact, the cost of J2EE development is increasing these years. I'm kinda happy to see how .NET goes, because at least it introduces competition that would eventually lower the depolyment cost of J2EE. :)

    3. Re:Our similar dilema and what we ended up with... by oconnorcjo · · Score: 2, Insightful
      How about the fact that there were no BENEFITS to going J2EE?

      1. J2EE is a proven technology. It has been around for years and one can be confident that the support and robustness of the platform is there.

      2. It is not tied to Microsoft. You can port this infrastructure to some other hardware or operating system. This is not about being against Microsoft but against being reliant on one vendor. It is just sound advice to use open standards whenever possible so that when a specific vendor losses interest in a technology, it won't have an impact on you.

      Using Visual Studio .NET to compile C++ code and VB screens is all fine and good but I always get a little nervous when one gets too reliant on one vendor because that path leads to "vendor lock". ASP is an example:

      The most popular web server on the internet is Apache. Are you using it? If not is it because people started using ASP and it would be difficulty rewriting that functionality despite IIS's spotty record and Apache's solid record?
      While thinking about that, think about how much it would cost to remain flexible and how important that might be in the future.
      --
      I miss the Karma Whores.
  6. You probably won't like this... by xagon7 · · Score: 4, Insightful

    But to be quite honest, it is dufficult to give a proper recommendation without specifics.

    Here are my recommendations.

    Look into Java for you system, mainly since you are stating you need cross-platform compliance.

    You could use Java's RMI for this Jav architecture, which is the second fastest distrubited call framework available, and second only to sockets...SOAP, DCOM, and CORBA are respectably slower, CORBA being the slowest of the bunch.

    If you want to go the C/C++ route, use SOAP, which will allow you to be extensible and allow you to be crossplatform and ready for whatever your pointy haired boss wants to throw your way next week.

    I do NOT fully understand your necessity for OpenGL, nor do I understand the GTK requirement so my suggestions may be invalid.

    If you are looking for a cross-platform distributed application framework, again, look at SOAP and/or Java both are proven technologies.

    I FIRMLY believe SOAP has pretty much made CORBA obsolete.

    Flame on for my ignorance....

    1. Re:You probably won't like this... by johnnyb · · Score: 4, Insightful

      Problems with SOAP:

      1) It is NOT NOT NOT NOT NOT NOT NOT Object-oriented. In fact, they've stopped calling it the "Simple Object Access Protocol", and have just stuck with SOAP because it has NOTHING to do with object-oriented programming. You CANNOT pass references to remote SOAP objects as parameters and have it work seamlessly with the language.

      2) It is not nearly as compatible as CORBA. If you look at all of the current implementations, many of them are almost mutually exclusive. CORBA used to be the same way - a very long time ago. However, these days it is pretty rare that IIOP isn't properly supported between ORBs. So, for ORB portability CORBA is the way to go.

      3) CORBA is a complete architecture. SOAP is only the message-passing component, and a very poor one at that.

      4) SOAP messages are about 4x the size of CORBA messages, and take a whole lot longer to parse. So if you currently are using CORBA and are filling up a T1 line, moving to SOAP will mean that you need to buy 3 more.

      5) (a continuation of 3) CORBA has _language_ support for features such as transactions and security, so you don't have to implement bloody or vendor-specific hacks to implement such things. The CORBA PortableInterceptor interface is a wonderful, wonderful thing. The ability to seamlessly pass context information around without additional coding is quite amazing.

      In fact, the SOAP standard itself starts off by listing things where the designers were too bothered to be "simple" to actually implement a complete architecture. From the SOAP 1.1 standard:

      ==clip==

      A major design goal for SOAP is simplicity and extensibility. This means that there are several features from traditional messaging systems and distributed object systems that are not part of the core SOAP specification. Such features include

      * Distributed garbage collection
      * Boxcarring or batching of messages
      * Objects-by-reference (which requires distributed garbage collection)
      * Activation (which requires objects-by-reference)

      ==clip==

      These are standard features of CORBA. CORBA's Portable Object Adapter is just an amazing piece of technology.

      Plus, if you've ever tried to write WSDL vs. a CORBA interface, you'll find that interfaces are much easier.

      The only place where SOAP surpasses CORBA is if you are doing document-passing functions rather than parameter-passing functions. For example, if you were sending in a complete invoice (a lot of depth and loosely structured), you might use SOAP. However, for operations where the parameters are fairly structured, CORBA is clearly the winner.

      SOAP is an interesting technology for document exchange, but it's role in enterprise computing is highly, highly, highly overrated, and CORBA is a wonderful jewel that so many people overlook out of fear. But really, it's not that complicated.

  7. Good advice from a well versed programmer. by abradsn · · Score: 2, Insightful

    .Net will support opengl, but you should use directX instead because it will always be more supported by Microsoft.

    I do believe corba supports opengl.

    If you own Delphi use corba. If you want this app to run on Linux and Windows, do not use com/.net because there is only one (poor) unix implementation currently.

    If you choose .Net write the application in c#

    1. Re:Good advice from a well versed programmer. by hunnybunny · · Score: 2, Insightful

      > I do believe corba supports opengl.

      er, i don't think so.

      corba is object middleware, UI issues are out of scope.

    2. Re:Good advice from a well versed programmer. by Schnapple · · Score: 4, Informative

      Colin Fahey has authored a C# OpenGL Wrapper if that helps any...

  8. Risk Management by LarryRiedel · · Score: 2, Insightful

    I think for me it would be more a question of building on something relatively stable vs relatively unstable. Considering Miguel seems to see .NET as a technology to succeed CORBA, I would feel ok saying the same thing. But CORBA and GTK are a platform that, although somewhat crufty, seem to have gone through much more real world use than .NET.

    Also, for the next several months at least, it seems like .NET suggests Windows and CORBA+GTK suggests *nix, although of course that is not an essential necessity, but maybe it is a constraint for some projects.

    Larry

  9. SOAP has pluses, performance is not one of them. by FredNerk · · Score: 4, Insightful
    You could use Java's RMI for this Jav architecture, which is the second fastest distrubited call framework available, and second only to sockets...SOAP, DCOM, and CORBA are respectably slower, CORBA being the slowest of the bunch.
    Sorry, this is just plain wrong. First, a quick google search finds many papers like this one that show just how appalling SOAP is compared to other protocols. Leaving aside the text-versus-binary issue, the SOAP protocol itself sends many more messages per function call than the competition.

    Second, RMI runs over JRMP (a Java native protocol) or IIOP (CORBA's protocol). JRMP is slightly faster than IIOP, but both are comparable. In a multi-langauge environment IIOP would allow you to use CORBA to integrate your Java apps with apps written in other languages.

    This is not to say that SOAP is useless, or even bad. The broad base of support SOAP enjoys means it could become a lowest common denominator; a kind of the middleware for middle. But it by no means replaces CORBA. There are many good articles on this topic from both the pro-SOAP and the pro-CORBA sides. As another poster said, when making these sorts of decisions it is important to research both sides rather than trying to measure the oppinion of slashdot.

    I firmly believe that SOAP and CORBA are complimentary technologies.

  10. Re:Python is distributed? by FredNerk · · Score: 5, Informative

    Absolutely - it even has its own official CORBA mapping just like Java or C++. There are a number of free ORBs available like Fnorb and omniORBpy.

  11. What's got OpenGL got to do with CORBA? by t_hunger · · Score: 5, Insightful

    CORBA is a architecture that allows objects -- implemented in different languages and running distributed over a network consisting of mashines of different architectures -- to communicate. I fail to see how GTK or OpenGL get into the picture here. ..Of course you can use OpenGL, GTK or any other library in your CORBA objects (if you implement them in a language matching the library you want to use), but that got absolutely nothing to do with CORBA per se. CORBA's location transparency makes using such libraries a bit harder of course: You need to make sure all relevant objects are on the same mashine for one thing. Then you might end up with a multithreaded application because of the CORBA ORB you have choosen which might confuse some of the libraries you want to use.

    Having said this it is hard to give any advice based on the little information you provide. CORBA is a very powerful architecture, deffinitly more powerful then SOAP (No object-by-refernce or activation for example) and others. As allmost allways this power comes at the price of complexity. You'll need to sit down, figure out your requirements for the communications architecture you need and then go over the list of available alternatives.

    I can't really say much about .Net, having not used it yet. But in general I'd prefer to base my work on a architecture that has had some years to settle. And .Net is so far rather restricted to one plattform. Mono might change that in time, but with its head developer announcing that they'll just drop whichever part might get them into legal trouble I wouldn't want to base my company's products on that plattform. You might wake up one morning and find out that that mono suddenly no longer supports networking or something;-)

    Regards, Tobias

    --
    Regards, Tobias
    1. Re:What's got OpenGL got to do with CORBA? by DNAGuy · · Score: 3, Insightful

      If you want to compare remoting methods, than you have a list including CORBA, COM, .NET Remoting, and SOAP.

      CORBA and COM have proven track records and many developers understand them. In addition, many tools are available to integrate with these remoting technologies. However, CORBA and COM are difficult to configure to run over the public internet and there are many security considerations when doing so.

      SOAP runs over HTTP. As a result, it is as easy to set up as a web service. The security considerations around opening port 80 are understood. The endpoint can be logged if necessary, the same way web servers are. Of course, XML and HTTP are not very efficient mechanisms for RPC calls in a backend type situation where performance and scalability are paramount. SOAP's strength is the promise that disparate systems may be integrated over the Internet.

      The track record of .NET Remoting remains to be seen. It has the same advantages and disadvantages of COM and CORBA in terms of being a binary protocol. They tend to be reasonably fast but are difficult to run over the Internet. .NET Remoting's claim to fame is that it is the "native" binary remoting scheme for .NET. I don't know much about its performance though I would expect it performs favorably against COM.

      My two cents. Hope it's useful.

      --

      BRENT ROCKWOOD, EST'd 1975

  12. Re:Python is distributed? by t_hunger · · Score: 2, Interesting

    Python got CORBA bindings and those are great! CORBA with C sucks, CORBA with C++ is nice, CORBA with Python rocks.

    Regards, Tobias

    --
    Regards, Tobias
  13. Apples and oranges by slipset · · Score: 2, Insightful

    I think that a better questions to ask is whether to choose between .Net and J2EE, since CORBA is st a very small subset of these two technologies. CORBA is a technology used to find objects on a network, which is something that .Net and J2EE also provide, along with more usefull stuff as persistence, transaction,and security-handling

    Of course, there are most certainly other frameworks than .Net and J2EE which provide such services as well.

    1. Re:Apples and oranges by t_hunger · · Score: 2, Informative

      CORBA has a lot of services too. There's a security service, nameservice and lots of others. Persistent object storage and transactions are among them, too.

      The downside is that not all ORBs do offer all services. That's better with J2EE and .Net: You got only one vendor with both, so their products are allways complete. The implementation is the definition of the standard after all:-)

      --
      Regards, Tobias
  14. .Net is not viable yet by Anonymous Coward · · Score: 2, Interesting

    .NET is not fully viable yet. Sure it's out but it's not what I would call mature yet. However Java, J2EE App Servers like Weblogic or JBOSS, and SOAP are much further along. Also the whole Java thing is rather cross platform as well. .NET is Windows only. Even if you only have Windows boxes you need to think about how to scale your system over time. What happens if you rollout .NET and set all your standards and it ends up costing you a fortune to scale it up? Or worse you hit a roadblock and need to completely change your architecture from scratch?

    If you've got serious requirements then consider highend Sun hardware with Weblogic Java J2EE App Servers. Sun hardware is expensive but it really does scale very very well and the systems will last for many years. We still run production Sun boxes that are ancient. If you can't afford that and it's overkill, consider Low cost Linux blades or boxes and run Tomcat/JBOSS instead. Once you optimize a Linux build by stripping out everything you don't need and tune it, it's very efficient (same with Sun, ours are stripped down to the bare minimum at the OS level). Just slam as much RAM as you can into the hardware. Java needs elbow room to work but once it's got the RAM it works very very well. Of course you'll need good programmers who know what they are doing. One can screw up Java just as easy as .NET.

    To truly make a good recommendation, one would need a whole lot more information than what you provided. Perhaps Slashdot needs a RFP (Request for Proposal) option! Really, most of these questions are lacking in the proper information to provide proper advise. In this case we have no information about what the users current environment is and where they think it's going. Lot's of options and possibilities.

    Not so sure I would trust Microsoft for my Enterprise infrastructure. I always laugh my ass off when I see an MS Enterprise commerical. I almost choked to death when I saw the first MS Enterprise ads. Taking into account all of the recent security problems MS has had, I cannot trust them at all. We scan incoming and outgoing email about 4 times both ways. We probe for unsecured IIS loads on workstations, we look for MS SQL loads as well now. MS Servers are constantly being rebooted for no apparent reason other than "it works when we reboot it". They disappear on the network for no apparent reason. They lock up completely so we have to power them off. We have about 1,000 MS trained staff members to maintain the desktops and servers. We have 5 people managing the Unix Mission Critical systems. Of course those 5 people make a hell of a lot more money but they are worth it.

    I would not place the foundation of my network in the hands of Microsoft. I have 10 year old Unix systems still in production that just plain work.

  15. CORBA is a dinosaur... by r4lv3k · · Score: 2, Informative

    CORBA is an older distributed computing model that will probably be replaced by or enhanced with XML-based messaging solutions in the future. It is more difficult to develop with compared to web services. However, a .NET implementation will be even easier to implement than Java. Remoting (remote object proxying) is extremely simple and all the tools you really need are free. If your developers need coddling then use VS.NET w/Sourcesafe but IMHO it's just a fancy text editor :). Use SciTE, NAnt, NUnit, NDoc, CVS, and the free .NET tools. The basic questions you must ask yourself: - How will this system be integrated in the future? XML-based protocols can be integrated into a heterogenous environment... CORBA can too, but its nastier to implement. - How important is cross-platform support: - Must have, right now (in which case .NET is probably not an option). - Strategic (in which case Mono might provide a partial or complete solution in the future). If you use .NET, separate your UI classes from your business logic in separate libs. That way, if Mono doesn't support something in Windows Forms, you can still use the C# and hook it up to GTK+ with C bindings! Also, there's a C# wrapper for the SDL (do a google search for it). That might provide the 3-D support you need. SDL is *very* cross-platform. If you ever need any help, make me an offer! :) ralvek