Welcome to SOA Thinker

Welcome to SOA Thinker


Welcome to my new blog, SOA Thinker. The purpose of this blog is to discuss various ideas about SOA. Architecture, governance and code will all find a home here. I will also use this blog as a platform to help connect you to internal experts in order to get your real-world issues resolved, and to document those resolutions for the benefit of all readers.

SOA is first and foremost about architecture, but architecture alone has never been enough. Solid, professional code must realize the architecture, just as steel, glass and other building materials realize the architecture of any large scale building. Governance plays it role in this analogy by providing the rules and regulations for the enterprise.

While it is necessary to specialize in a specific discipline (architecture, governance and coding), the more we can learn of the other two disciplines will help us all better communicate, and that is my goal for this blog: not to espouse a particular tool or approach, but promote a fuller understanding of all aspects of SOA. We will leave the ideology out.

I will also use this platform to question the "common sense" ideas that are often bandied about as being fact. The emperor really does not have any clothes on, no matter what the common opinion of the day may be. The simple categorization of ideas as being, "good" or "bad" rarely applies in modern engineering, especially when everyone is learning so much, so quickly. The only way to truly know an idea is to examine it, try it out in a test environment, and discuss its strengths and weaknesses with you peers. I will use this blog as a vehicle for those ideas, allowing everyone to examine these ideas and make up their own minds.

The Definitive Guide to SOA: Oracle Service Bus (second edition)


The second edition of the books hits the shelves today. Published by Apress, you can purchase it through Amazon.com. It has been updated to cover the coming release of Oracle Service Bus 10gR3 and covers the new features with tons of sample code. If you are interested in the Oracle Service Bus, or enterprise service buses in general, this book will help you better understand how to use a service bus in your environment to help your company save money by increasing agility.

The Emperor Has No Clothes


At least once a month I will write about the misconceptions or questionable perceptions that I see in the industry. This month's topic is speed.

I routinely meet people in the field that are convinced that, "speed is king". These are usually the same folks that are very concerned about the impact of web services and XML on the overall performance of their enterprise. A few weeks ago I was conducting a training session and I asked the audience if speed was the most important aspect of their software development. Fifty percent of the class raised their hands. The class was comprised of very senior developers and consultants in the SOA field. Even when I asked the obviously leading question, "So there is nothing more important than execution speed?" the hands remained up. This is a common perception and I attribute the fact that only 50% of the class thought speed was the #1 concern to the fact that they were so senior. With less experienced folks the percentage is much higher.

I argue that speed is not the #1 concern anymore. This is a legacy belief from the 60's and 70's. In those times, speed really was king! Enterprise systems were tiny compared to today's standards, often comprising a single mainframe computer. The computer users of that era were largely highly trained (or at least specialized) computer engineers. Reuse occurred at the subroutine level only. Change within the computing environment moved at a glacial pace when compared to today's rapid stream of change. In that era each CPU clock cycle had a dollar value assigned to it. If you didn't write fast code, it cost the company money and possibly the coder his job.

Fast-forward to today's computing environments. A medium-sized enterprise will have several hundred to a thousand servers in their data centers. Interfaces are created to allow comparatively unskilled users (i.e. non-software engineers) to get their work done remotely over a network. EAI and ETL work behind the scenes to enable federated systems to behave as one meta-computer.

If execution speed really was king, none of that would exist. Each enterprise would have a single, massively parallel computer that ran everything in a single, highly complex application. That single application would be written in native assembly code.

It wasn't that many years ago that people thought Java was too slow to run enterprise software. I remember when the C language was considered to be slow by many software engineers. The same holds true for distributed computing. "Crossing the wire" was an expensive prospect, with regard to time.

The pure fact is that speed is not king. We went to smaller, cheaper computers in a distributed environment because money is the real king. We are moving to SOA because re-use helps to save money. We are moving to SOA because interoperability saves money. We are moving to SOA because tightly integrated environments may be fast, but they surely are not agile. The business cannot wait for a year or more while IT reconfigures the software systems to better support the needs of the business. Marketing opportunities will come and pass during that time, costing the company money in lost sales opportunities

Modern businesses demand an IT organization that is highly responsive and cost effective. The trend of doing more work with less resources is nothing new in this world. In fact, the original mainframes offered the same benefit: more work for less money. The trend will continue into the foreseeable future. We, as IT professionals must continue to adapt to this pressure.

Ask the Experts


Because I co-authored a book on SOA and the Oracle Service Bus, people often assume that I am an expert in every detail of the product. That is simply untrue. I am fortunate to be surrounded by experts here at Oracle and I make liberal use of their expertise. As a result of my unique position here, I am able to comb through both the internal and external questions from the field, looking for interesting questions to share with you.

In this installment, the question is about the aggregation interval settings and how they are used by the Oracle Service Bus. On a legal note, I do reserve the right to modify the format and the content of all questions before I post them here.

Question


Please teach me about the sample interval in the aggregation Intervals.

In the following document says that statistics are recomputed by the sample interval.
--
http://e-docs.bea.com/alsb/docs26/operations/monitoring.html#wp1091189
Statistics are recomputed at regular intervals known as the sample interval.
--
According to my research, the sample interval is valid only when the alert rule is evaluated.
In the following document it says that the statistic are recomputed every minute.
--
http://e-docs.bea.com/alsb/docs26/operations/monitoring.html#wp1091204--
I think that the sample interval influences only the aggregation interval in alert rule. Is this right?

Answer


Here's how they relate together.

Statistics are reported either since last reset or for a particular aggregation interval. Aggregation interval is a moving window of time. However it moves in discrete steps called sample interval. Each aggregation interval has a different sample interval, e.g., if ai=5, then si=1, if ai=4 hours si=1 hour.

You can obtain the value of a particular statistic for the aggregation interval defined for the service any time. However it will only be accurate if you obtain it to coincide with its sample interval. For example suppose the aggregation interval for a service is 15 minutes. This means its sample interval is 5 minutes. Let's assume you obtain (query) the values of the statistics at 10:23 am. The statistical values you obtain will not represent the last 15 minutes (i.e., since 10:13). Rather, they will be derived from the data collected in the last 18 minutes (i.e., since 10:05 am.) and interpolated to approximate 15-minute value. Therefore the accurate values are only available at minutes/hours that are multiples of the sample interval associated with the aggregation interval.

Since values are only accurate on sample interval boundaries, an alert is evaluated only at the sample interval associated with its own aggregation interval. An alert with ai=5 is evaluated every minute, but an alert with an ai of 4 hours is evaluated every hour.

There is a separate "aggregation" processes which has nothing to do with the aggregation intervals. This aggregation process gathers statistics every minute from all members of the cluster and adds them up to construct the clusterwide statistical values.

Hope this helps.

Many thanks to Tolga Urhan for this information.

Thanks for Reading!


I promise to keep this blog insightful, critical and useful! If you have any questions, you can always reach me at jeff.x.davies@oracle.com. Until next time...

- Jeff

Comments:

Hi, we have been working with browsers and servers and with com technology in Windows™ for years, and over the last 5 years servlets, .Net and web services as well. Recently our company had been experiencing a high degree of convergence in the various products we produce, especially in face of changing technology. Probably the most significant single technology feature for our development has been Ajax (in a browser) and the idea of Ajax-like data exchange between applications, servers and clients alike. For instance, over the last 4 years, providing a com service or a programmatic routine for a process running on a machine in which a user has limited rights has proved to be fairly difficult, but the convenience of making a call to a server over HTTP(s) has become much easier than ever before. Much of the software we deal with needs the flexibility that is afforded by com routines, activex, and media rich Browser displays. All of that has been easy to rearrange as use of web service invocations instead of Com routines. Now we go freely across platforms, across machine types, and between authoring languages with no additional glue required. Although we have taken traditional green screen host applications and leveraged those to HTML (using Tomcat), and to XML – Soap based web services (using .Net and Axis2), one of the most uncanny projects that we have developed recently uses the idea of web services integrally right within a desktop application to make it more flexible and responsive to interface design sensibilities as well as functional re-purposing and re-use. In CAIL Integrator – derived from our flagship Multi-host emulator product, we added an SSL HTTP server (using activex technology) to the main program (multiple instances of CAIL Integrator negotiate ports), and this web server facility is designed only to take requests from the IP address of the machine that it is running on, unless other IP addresses are specifically enrolled. The application in question now offers the entire legacy COM interface of it’s forerunner products over this new http(s) link, and adds regular secure web host and web service behavior as well. For instance, the docking toolbar is a browser-object displaying any user modified HTML, as are all the configuration and help screens. (They can be accessed on a remote machine using a regular browser.) This enables complete remote configuration and command and control of the software over secured HTTP, while introducing standard HTML and its extensions, style sheets, JavaScript, visual basic, Java, and ActiveX etc. to the displays. http://www.cail.com/specs/CAIL_Integrator.pdf Moreover, any language can be used to invoke proceedures on a host machine using HTTPs and web service consuming principles. In the future I think that we will be seeing a lot more convergence in this area, as the idea of web services, Ajax, and simplified interoperability take hold more and more.

Posted by jerry Waese on September 22, 2008 at 11:52 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A site for SOA thought and discussion.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today