0

I want to know the differences between SOA and OO, and why SOA is going to popular?

4
  • 1
    You can not compare them like this. See this question first "What is SOA in plain english": stackoverflow.com/questions/2026523/…
    – ewernli
    Mar 9, 2010 at 8:58
  • @ghedas: does my answer look like a spam to you? Mar 9, 2010 at 9:20
  • apples to oranges... both should co-exist.
    – capdragon
    Oct 8, 2010 at 21:17
  • What's the difference between an engine and a car?
    – Vetle
    Oct 8, 2010 at 21:25

3 Answers 3

5

SOA is getting popular, because it introduces several benefits:

  • Makes your system more extensible
  • Easier for use by third-party code, for example you client's clients and their systems
  • It conserves your business logic and gives the ability to add additional presentation layers easier. This can be achieved in other methods, too.

These are the main benefits of SOA, I think. But you cannot compare OOP and SOA .. they're different things and they are not interchangeable. SOA is software architecture in general, on the other hand OOP is programming paradigm.

3

You can't really compare those two.

OOP is a programming language paradigm. Others are "functional programming" or "procedural programming".

You can use a OO language to use or create a service, but you could also use a functional language to do that.

In a nutshell SOA and OOP are two different things and you can't play them off against each other.

1
  • 1
    +1, but I'm going to quibble a bit... OO isn't really much a programming model in and of itself. OO tends to come in two flavors, one of which seems to be primarily a subset of procedural programming, and one which is primarily a version of the Actor model (which I'd argue is a third, 1st class programming paradigm along with procedural and functional programming).
    – kyoryu
    Mar 9, 2010 at 9:21
-1

To put things in perspective:

  • OO is a methodology for building applications in a single address space. The public contract is the API

  • SOA is the architecture pattern for building applications that spans multiple address spaces (distributed applications). The public contract is the persistent data (ie. wire format) itself.

Before SOA, there was effort to extend OO to building distributed applications, the effort, called CORBA, utterly failed. One thing people learned is that building distributed application, you have to explict expose the wire format (the data), which OO attempts to hide... don't think services as RPC but instead as message producer and generators.

3
  • 2
    @Jimmy: still spamming, I see. Mar 9, 2010 at 9:14
  • 1
    I felt that you are not technical enough to make that call... I better giving up arguing with you (what is the point of beating a dead horse) Mar 9, 2010 at 9:19
  • Why is this answer down voted? Any technical reason error? Mar 28, 2014 at 20:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.