Sunday, November 21, 2010
Winter 2011 Teaching Schedule - So Far...
It looks like I will be teaching BUS 515 (Operations Management) at the Henrico Campus of Strayer University this Winter, starting in Jan 2011. Thus begins my fourth year of teaching at the post-secondary level, and my second year of teaching at the graduate level.
Monday, November 1, 2010
J2EE design patterns for Performance and Scalability
From the LinkedIn J-Archtiect Group, The question was: Can someone suggest any J2EE design patterns that are available for performance and Scalability of enterprise applications?
First let me say that I am somewhat of a purist and MVC should be the starting point. Beyond that, it’s far too easy to get into a holy war about our favorite patterns. To me, your question was asked in a vacuum without any context, other than the assumed JEE context. Do you have a "green-field" or are you working with a legacy application? I like DTO/VO, DAO, Service Locators, facades, delegates, etc. However, with newer JEE components and other vendor solutions, we now also have to contend with ORM, IOC and DI more than we did in the past. Now the entity POJOs in EJB and DTOs can be one in the same, if you so choose (not trying to start another holy war here). Most of the time, we have a heterogeneous and complex mixture of these components in a single application.
For any scalable solution, caching in my opinion is a must. However, you have not mentioned which is your primary direction of scalability, vertical, horizontal, or a little of both. I have always liked the fly-weight pattern for caching, but it too assumes a strict context with regards to data structures that might not be acceptable given certain application designs. It seems to work very well in portal applications, but is a little more difficult to utilize elsewhere without in-depth data structure and object behavior design.
When designing JEE applications for performance, I always have to reach down into bowels of the system, below the JVMs to choose the right hardware (OS, 64 bit, multi-core, etc.), networking (bandwidth, VLANs), and database systems and configurations. There are also the integration layers: Do you need messaging? Sync or Async?
I also reach upwards above the JVMs for the right front ends with regards to load balancing and fail-over. I am a fan of separate HTTP stacks from your Java Application Servers as well as CMS for non-application content, and I also have to have hardware load-balancing and fail-over, like F5 BIG IP or Redline/Juniper. With horizontal scaling, you have to ensure that your applications are designed and optimized for clustering and that sessions are managed and replicated effectively and efficiently. Then there is the whole view layer category of components; you now need to make sure that you design for usability and reduce network traffic as much as possible via RIA/AJAX. After all, application performance is largely a perspective of the users utilizing the system to get their work accomplished.
You mention garbage collection, but even that is subject to application and object types, as well as server configurations.
To me, the consummate JEE performance pattern is really avoiding the two ANTI-PATTERNS of trying to engineer performance solely in the JEE layer and not building in mechanisms to observe application performance. First, one has to know within which layer to engineer the correct components: business logic in the JEE application, but data logic in the database; session management at the web/application tier, but load-balancing above that in a network hardware configuration. For performance engineering, JEE or otherwise, a more holistic approach is necessary, and that approach will guide the implementation of the lower level component patterns.
The second ANTI-PATTERN is not planning for application observation. All too often, we do not choose designs that allow us to observe application performance. With AOP, we have had the ability to design in cross-cutting logic to look at application execution; however, far too few of us use such techniques until we see the symptoms of poor application performance. And by then, it is more costly to re-engineer. With EJB 3.x, there is an easier way of designing and implementing DI and AOP from the beginning, but many still do not look at AOP during the initial design of the application. In the business world we use the paradigm of Plan-Do-Check-Act (Demming). In the JEE design world, we plan and do, but I don't see a lot of designs that plan for checking and acting. We check when there is a reported issue, and we act by fixing or re-designing what should have been part of the design in the first place.
Keep in mind that we did not even mentioned security engineering and if you need end-to-end, point-to-point or a mixture of both. Of course security engineering should also be designed in when we are designing for performance. They are not necessarily mutually exclusive, but sometimes security and performance collide in poor designs.
Wednesday, October 6, 2010
Fall Teaching Schedule
I am pretty busy this Fall with part-time teaching. At Strayer University I am teaching BUS310 (HR Management) and CIS331 (System Modeling Theory). At the PMI CVC Fall PMP Test Preparation Workshop I am teaching Frameworks.
Cross-Origin Resource Sharing - Preflighting AJAX Requests
A few months back I was ranting (I do that sometimes) about XSS and its negative affect on AJAX application development. Just recently I read about the Cross Origin Resource Sharing standard from the W3C. It is some pretty dry reading, but this Mozilla Developer Center article distills it into something usable. From what I understand there is hope for AJAX as long as you are using a modern browser that supports "preflighting". Of course you also need a server-side layer that filters these preflighted requests and returns the authorization to send the "real" AJAX request from the cross-domain web browser application.
Again this only works if your browser supports it, and we all know how notorious cross-browser support can be. Case in point, we are still using IE6 at my day job.
Again this only works if your browser supports it, and we all know how notorious cross-browser support can be. Case in point, we are still using IE6 at my day job.
Sunday, September 26, 2010
My Favorite Monopoly
As an adjunct professor in post-secondary academia for the past 2.5 years, I have taught several business courses at both the undergraduate and graduate levels. Part of the curriculum includes topics related to economic systems, market types, and competition types. I can honestly say that in undergraduate level business courses I routinely present the NFL as a contemporary example of socialist markets, monopolies, and monopolistic competitions.
As far as I know, a monopoly is a market condition characterized by many buyers and one seller. The one seller (or enterprise in this case) can control pricing through its exclusive control on supply. That sounds like the NFL to me. I mean really, where can I purchase professional football outside of the NFL, as pervasive as the NFL. In the past several years the NFL has protested its innocence in government anti-trust proceedings, all the while saying that its individual teams act as separate businesses in the respective markets. Really? Is our government that stupid to accept that explanation? Well, reader, don't answer that; it is too depressing.
At a minimum that makes the NFL the key players in a monopolistic competition, maybe even a socialist enterprise system. Where is the socialist-hating tea-party in this argument?
In these economically distressed times, the NFL continues to force its monopoly on consumers by steadily increasing ticket prices. Now, one could argue that the laws of supply and demand should kick in at some point and ticket prices would start to shrink when supply exceeds demand. Meaning, at some point, the consumers will stop buying tickets until the NFL teams start reducing ticket prices. However, the NFL has another monopolistic technique. Since the NFL virtually owns the major networks, the NFL actually forces television blackouts in local team markets when ticket sales are poorer than expected. So, again, the consumer is at the mercy of the monopoly.
As far as I know, a monopoly is a market condition characterized by many buyers and one seller. The one seller (or enterprise in this case) can control pricing through its exclusive control on supply. That sounds like the NFL to me. I mean really, where can I purchase professional football outside of the NFL, as pervasive as the NFL. In the past several years the NFL has protested its innocence in government anti-trust proceedings, all the while saying that its individual teams act as separate businesses in the respective markets. Really? Is our government that stupid to accept that explanation? Well, reader, don't answer that; it is too depressing.
At a minimum that makes the NFL the key players in a monopolistic competition, maybe even a socialist enterprise system. Where is the socialist-hating tea-party in this argument?
In these economically distressed times, the NFL continues to force its monopoly on consumers by steadily increasing ticket prices. Now, one could argue that the laws of supply and demand should kick in at some point and ticket prices would start to shrink when supply exceeds demand. Meaning, at some point, the consumers will stop buying tickets until the NFL teams start reducing ticket prices. However, the NFL has another monopolistic technique. Since the NFL virtually owns the major networks, the NFL actually forces television blackouts in local team markets when ticket sales are poorer than expected. So, again, the consumer is at the mercy of the monopoly.
Monday, September 6, 2010
From the files of "You can't make this stuff up!"
This was so strange that I had to share it. And I swear that I did not make it up.
While I was working for one company, I started to look for alternative employment with another. It just so happens that I had an interview with a company to be a technical lead on their Java team. I interviewed for several hours, talking to individual contributors, architects, and managers. In the end they passed on me; according to them, I was not a good fit. Now mind you, this was after I had been writing Java web applications for decade and I was running my own development team of about 30 people.
A few months later a new position with that same company came up and I was contacted by a local recruiter. I informed him that I was already bypassed for the first position, but he still wanted to try. He returned to me with feedback from the company that they were not going to pursue an interview with me due the last interview I had. Nice!
At about that same time, my manager's manager came to me with a request to help one of his colleagues. It seems that his friend was getting ready build a new development team, and since I had managed a very large team with disparate technologies my Mgr's mgr thought that I would be a good mentor for this person. I said yes without even thinking to check out who this person was. It turns out that this friend in need was the manager that passed on me (twice) from that other company.
So, I went ahead with the mentoring session with this guy. All the while I was wondering if he knew who I was, and if he did know why was he still asking my advice after he passed on me (Did I say twice, yet). He finally let on that he did know who I was, and that is where it got even stranger. He still wanted my help, and he still thought I was not a good fit in his organization. So, even though I did not fit into his "new" organization, I was helping him design it. I could not make this up.
While I was working for one company, I started to look for alternative employment with another. It just so happens that I had an interview with a company to be a technical lead on their Java team. I interviewed for several hours, talking to individual contributors, architects, and managers. In the end they passed on me; according to them, I was not a good fit. Now mind you, this was after I had been writing Java web applications for decade and I was running my own development team of about 30 people.
A few months later a new position with that same company came up and I was contacted by a local recruiter. I informed him that I was already bypassed for the first position, but he still wanted to try. He returned to me with feedback from the company that they were not going to pursue an interview with me due the last interview I had. Nice!
At about that same time, my manager's manager came to me with a request to help one of his colleagues. It seems that his friend was getting ready build a new development team, and since I had managed a very large team with disparate technologies my Mgr's mgr thought that I would be a good mentor for this person. I said yes without even thinking to check out who this person was. It turns out that this friend in need was the manager that passed on me (twice) from that other company.
So, I went ahead with the mentoring session with this guy. All the while I was wondering if he knew who I was, and if he did know why was he still asking my advice after he passed on me (Did I say twice, yet). He finally let on that he did know who I was, and that is where it got even stranger. He still wanted my help, and he still thought I was not a good fit in his organization. So, even though I did not fit into his "new" organization, I was helping him design it. I could not make this up.
Sunday, September 5, 2010
Tired of Pushing Rope - A Cathartic Rant
I left my last position with a major PC manufacturer and services company because I was simply tired of pushing rope, a.k.a. "Hacking Work". Everything that I tried to do for the organization or our customer seemed hopelessly complex and laborious as though I was trudging threw quicksand or trying to push rope. I really started to doubt that I was the right person for the job. I felt as though I was failing. Now that I have had time to reflect on the recent past, I realize that what i thought was my failure really resulted in a success: I walked away with my integrity, and work ethic (not to mention ethics in general).
Since then I have talked with friends, colleagues, and customers. It wasn't just me. However, no one is harder on me than me. So I know that I did not walk away from that position clean. I failed to deliver all the value that I wanted, to the team I managed and to the customer I supported. In fact, when I stepped down from managing my team, it was because I no longer felt adequate and I was burned-out. That was somewhat of a selfish motive I guess.
During my time there, I witnessed how we as a delivery and outsourcing company failed to deliver. In fact our delivery methodology was broken. Several customers came to me and told me that we were too slow and too expensive. I know that I did not have all the right answers, but I did know that since I was there we routinely delivered late and mostly with reduced customer satisfaction. Therefore, I pursued Agile/Scrum training. I was very excited about the iterative approach and I put together a pitch to my management about this approach. It was shot down immediately. Never mind that we were not delivering late and sometimes not at all, never mind that our delivery was essentially broken and over-priced, no one wanted to hear what I had to say and business went on as usual. Our technical project teams were exercising a "Hope-Driven" approach.
In my opinion we were more afraid of what the customer would think about our new approach. We could not show that we knew something was wrong with our approach, no matter how inadequate it really was. We were also afraid to introduce any new process to the customer as we thought we were already perceived and heavily process laden. I continue to say we, as I did fail to convince anyone of the virtues of changing our delivery model.
One of the major issues was how we traced requirements to testing and sign-off. We actually had no formal requirements traceability. Sure, we collected the requirements, but we never linked them directly to verifiable and repeatable test cases. This became evident when I witnessed ad-hoc testing as part of the System and User Acceptance testing cycles. In my opinion the customer simply signed off on the projects when they were satisfied that we could deliver no more value if we continued.
As a benchmark, I consulted with some of my colleagues that also work in the IT Application Services and Consulting industries. I described how we did business with regards to requirements linking to testing and user acceptance. They were shocked, as I expected them to be.
Since then I have talked with friends, colleagues, and customers. It wasn't just me. However, no one is harder on me than me. So I know that I did not walk away from that position clean. I failed to deliver all the value that I wanted, to the team I managed and to the customer I supported. In fact, when I stepped down from managing my team, it was because I no longer felt adequate and I was burned-out. That was somewhat of a selfish motive I guess.
During my time there, I witnessed how we as a delivery and outsourcing company failed to deliver. In fact our delivery methodology was broken. Several customers came to me and told me that we were too slow and too expensive. I know that I did not have all the right answers, but I did know that since I was there we routinely delivered late and mostly with reduced customer satisfaction. Therefore, I pursued Agile/Scrum training. I was very excited about the iterative approach and I put together a pitch to my management about this approach. It was shot down immediately. Never mind that we were not delivering late and sometimes not at all, never mind that our delivery was essentially broken and over-priced, no one wanted to hear what I had to say and business went on as usual. Our technical project teams were exercising a "Hope-Driven" approach.
In my opinion we were more afraid of what the customer would think about our new approach. We could not show that we knew something was wrong with our approach, no matter how inadequate it really was. We were also afraid to introduce any new process to the customer as we thought we were already perceived and heavily process laden. I continue to say we, as I did fail to convince anyone of the virtues of changing our delivery model.
One of the major issues was how we traced requirements to testing and sign-off. We actually had no formal requirements traceability. Sure, we collected the requirements, but we never linked them directly to verifiable and repeatable test cases. This became evident when I witnessed ad-hoc testing as part of the System and User Acceptance testing cycles. In my opinion the customer simply signed off on the projects when they were satisfied that we could deliver no more value if we continued.
As a benchmark, I consulted with some of my colleagues that also work in the IT Application Services and Consulting industries. I described how we did business with regards to requirements linking to testing and user acceptance. They were shocked, as I expected them to be.
Subscribe to:
Posts (Atom)