I feel as if someone tacked a “show me your enterprise
service bus” sign onto my back and I’ve been walking around blissfully unaware
of this fact for months now. Client presentations, vendor presentations, casual
conversations – everyone wants to show off their visuals of an ESB, SOA, and
next generation architectures. Thank goodness there’s no fine print on my sign
restricting me from asking tough (and not so tough) questions.
- So how
do I avoid vendor lock in?
- Do we
really need SOAP?
- Grid
computing… show me some client references!
- JSR
168 portals… yawn.
To escalate the situation, I came up with my own next
generation architecture diagram and talked it through with a bunch of my peers.
People liked it at first because of all the nice icons. They really loved it when the answer to any of the
hard questions was “let me show you how this works, do you have a Web browser
handy?” I’ve included the diagram below for your enjoyment and jotted down some
quick write-ups with the obligatory links so that you can see, understand, and
convince yourself of the reality of these tools.

- Ruby on Rails – Although
there are tons of free services and a number of high quality paid services
that can be leveraged to enhance applications on the Web, it’s hard to go
very far without having some dedicated computing power. Using Ruby on
Rails and MySql will get you the maximum bang for your buck (that’s no
bucks for those who are counting). While you’re riding the Rails, make
sure to take advantage of Ruby gems and Rails plugins.
- Web Service APIs – Lots of
folks talk about enterprise applications that invoke common APIs to store
documents, images, or access business services. For most, it’s talk of a
far off and distant future. Would you like to see how this works today?
Check out box.net, flickr, and salesforce.com for file, image, and
business Web Service APIs in action.
- Yahoo Pipes – The minibus
within the bus, Yahoo pipes provide a visual environment for aggregating,
manipulating, and mashing up data and producing value-added output. Good
mashup implementation but the interactive visual editor gets most of the
attention – rightfully so. Imagine your business users mashing up business
data to solve problems in new and creative ways that your analysts and
developers never imagined.
- Google Base – A loosely
organized, metadata-driven, data store available through Google. Data is
accessible via an HTTP API with either Atom or JSON feeds.
- Open ID – Rather than
supported a single point of control system for authentication, like
Microsoft’s Passport, OpenID is a decentralized system that relies upon
distributed identity stores and, for the most part, ownership of a
particular URI. The system is lightweight yet still manages to provide for
the distribution of basic profile information in addition to straight
authentication. With more and more sites adopting this service, adoption
is likely to steadily increase over the next several years.
- Amazon Web Services – Despite
the lack of any hard-and-fast SLAs on their services, developers are
increasingly leveraging the AWS platform for production applications.
Their Elastic Compute Cloud (EC2) provides the average developer access to
a significant grid computing array. Their Simple Storage Service (S3) and
Simple Queue Service (SQS) provide access to globally distributed storage
and messaging services, respectively. All of this is based upon a very
fair “pay as you go” model that requires you to only pay for what you use
and scale up and down without the usual provisioning and financial
burdens.
- Sugar CRM – For one, I like
Sugar’s tagline “Commercial Open Source”. A PHP-based CRM alternative to
products like Siebel and Salesforce.com, Sugar is gaining pretty
significant traction in the marketplace and is proving to be the first
lucrative open source business application. The software has a good look
and feel to it and their distribution options will likely set the standard
for all other open source business software. You can opt for off-site
dedicated hosting (on-demand), fully configured appliance-based
distribution, or host-it-yourself (with or without a support contract).
- Bit Torrent – Peer-to-peer
file sharing technologies have yet to find their place in the enterprise.
On the open Internet, though, such technologies are said to account for as
much as 40% of global Internet traffic. As desktop search technologies
mature, sharing of decentralized data is going to be the best way to get
at all of the knowledge otherwise hidden within the enterprise.
- Google Gears – If you don’t
have the time or inclination to build offline clients to support your
disconnected users, how about just making your Web app “disconnectable”?
Gone are the cross platform, DLL, and distribution issues. Your Web app
can sense when it’s lost network connectivity and go into disconnected
mode. A great idea that will likely only gain limited traction in the
enterprise.
- Netvibes Universal Widget API (UWA)
– JSR 168 (or is it 286 now) compliant portlets seem so passé. With
widget-based start pages becoming the norm and Windows and Apple both
integrating widgets as integral parts of the future desktops, “write once,
run anywhere” were just a matter of time.
- Microsoft Virtual Earth –
I’ve blogged about this before and even did a quick Webcast. Take the hottest
Web 2.0 visualization technique (AJAX
maps), add birds-eye views in 2D and realistic 3D virtual earth renderings
that run in-browser for both IE and Firefox and you’ve got Virtual Earth.
It simply must be experienced to be believed.
- Simile
Timeline– An equally interesting visualization technique
but one that’s got significantly less press is the Simile Timeline AJAX widget
for bringing time-based information to life.
With the 2007 NASCIO IT recognition award submission process closed and the evaluation process in full swing, I’m anxiously awaiting the publication of the nominations from across the country. It’s always interesting to see what new and innovative practices are being applied in different state governments. With Web 2.0, blogging, wikis, multi-media, and social computing firmly established in the Internet at large (see Time Person of the Year 2006), it’s high time that this wave hits the government sector, which usually lags behind in such trends by a couple of years.

I’ve been catching up on blogs the last couple of days and took in a couple of interesting sites. Dave Fletcher, who I believe is the CIO or CTO of Utah, has re-emerged with a vengeance in his blogging and is to thank directly or indirectly for much of this information.
• Kansas’s new state portal features a MyKansas page with drag-and-drop type widgets similar to what you’d find on the Web 2.0 style portals like Netvibes. The portal has some other interesting features but still belays the shallow integration with other state sites that characterizes most state portals. As is to be expected, it is likely to be a multi-decade initiative to provide deep multi-channel integration across the different state government agency service offerings.
• The federal Department of Health and Human Services (HHS) looks to have really done their blogging presence right on their Pandemic Flu Leadership Blog. Well laid out, with expert contributions and a wealth of comments (albeit moderated), the site is a great example of opening up a dialog with the experts in this area and making participation and information accessible to the public at large.
• The State of Delaware is using VoiceXML to provide telephone-accessible services to citizens across different agencies (here’s that multi-channel thing again). This directly addresses the fact that e-government doesn’t flow exclusively through the Web browser. Citizens requiring state assistance services are less likely to have access to a high-speed Internet connection, less likely to be comfortable with these services, and more likely to have some degree of physical or cognitive impairments; all of which make Web-browser based applications less than ideal. VoiceXML solutions can leverage XML technologies in existing Web-based applications and provide access to citizens through a very important alternative channel.
• I’d be remiss if I didn’t mention some of the trends in Dave’s own state, Utah. Dave has a bunch of information in his blog. I appreciate especially the Google search function as I’ve heard anecdotally, on a number of occasions, tales of state employees bypassing their own state portals and going to Google directly when they really want to find something within their states.
In Pennsylvania, as I believe in many other states, IT consolidation is the order of the day. The recently re-issued executive order from Governor Rendell has a specific section covering IT Consolidation and Services (Section G) and has strengthened the IT review and governance processes significantly from the previous revision. BSCoE’s implementation of the Logidex product, which I’ve blogged about previously, will provide some support in the area of reuse, consolidation and measurement and will be one of the NASCIO submissions that is publicized in the next couple of months.
Every IT generation has its seminal tome that transcends
time and connects the dots in a way that no book had before it. For the object
oriented generation in the 1980s, it was the Gang of Four (GoF) book. For the
application architecture generation in the 1990s, it was Fowler’s book on
patterns (PoEAA). “RESTful Web Services” will be, in my opinion, that book for
the 2000s Web services generation. 
There is something absolutely special about this book that
readers of GoF or PoEAA will immediately recognize and appreciate. The book
covers a breadth of technologies and ideas yet it helps the reader see how they
all connect. It uses short code samples (in Ruby, the choice of this
generation) to illustrate rather than obfuscate the ideas. Most importantly, it
makes the complex comprehensible and delivers epiphany-like experiences
throughout the book.
There are too many highlights in this book to enumerate in
this review. However, some of the coverage that I appreciated most included:
- The
chapters on resource-oriented design, since there was practically no
written information available on this topic prior to this book
- The
chapter on resource-oriented best practices
- An
overview of the service building blocks, including the different
representational formats and WADL, which I wasn’t aware of
- The
chapter comparing and contrasting RESTful services with the “Big” (e.g. SOAP)
service overhead that is common in most enterprise environments
I would have liked to see this book touch on simple POX
versus true REST and handle the resource-oriented security concerns in a bit
more detail but you can only ask so much of any one book. I’m fairly confident
that “RESTful Web Services”, like the seminal tomes that have gone before it, will
become assumed reading
Eliminating or reducing enterprise system batch processing
is the bane of many architects looking to convert large-scale legacy systems to
current platforms. Some believe, rightly or wrongly so, that mainframe-style batch
has no place in modern system architectures and attempt to eradicate its
existence entirely. Others are a bit more accepting and attempt to understand
the role that batch processing fills in enterprise application architectural
space. Even for these people, finding people with the skills to engineer batch
processing systems with these newer technologies is not an easy proposition
since little or nothing has been written about batch on the Java or .NET
platforms.
I’ve seen various attempts at non-mainframe batch processing
over the years from the simple CRON / Quartz type attempts to more
sophisticated approaches that handled concepts such as scheduling, job control,
retry and rollback, and parallel processing. There are commercial applications
that purport to take care of much of this for you. Many of these are, for
better or worse, nothing more than mainframe tools ported to the Java and .NET
platforms with little regard for the differences between mainframe and
non-mainframe architectures.
I’ve seen several attempts at batch processing frameworks in
.NET. The earlier versions (pre .NET 2.0) of Rocky Lhotka’s Component Scalable
Logical Architecture (CSLA) included admittedly simple batch functionality.
Avanade’s Avanade Connected Architecture (ACA.NET), which formed the backbone
of Microsoft’s Enterprise Library, had a batch element, entitled fittingly ACA
Batch. Until recently, the Java open source community had only produced several
half-hearted batch processing architectures which, given their lineage as the
first “true” legacy replacement technology, is actually more than a bit
disappointing.
A couple of month’s back, word got out that Rod Johnson, the
brains behind the widely respected Spring framework, was going to be presenting
the Spring Batch Framework at this
year’s JavaOne conference. Yesterday, the formal announcement was made of the
addition of Spring Batch to the Spring portfolio. A combination of Interface21
(the folks behind Spring) and Accenture (the folks behind Avanade) resources
have collaborated in the creation of this batch framework.
I haven’t checked out the source code yet but Spring Batch
purports to be non-dependant on other Spring facilities. The architectural
diagram for Spring, which is shown below, won’t tell you much. 
Perhaps more
telling are the use cases upon which their framework is based:
- Simple
Batch Repeat
- Automatic
Retry After Failure
- Commit
Batch Process Periodically
- Asynchronous
Chunk Processing
- Copy
File to File in a Batch
- Massively
Parallel Batch Processing
- Manual
Restart After Failure
- Sequential
Processing of Dependant Steps
- Partial
Processing
- Whole-Batch
Transaction
- Scheduled
Processing.
If any or all of these things are present needs of your
existing system and will need to be replaced over time, I encourage you to look
at Spring Batch. Even if you’re developing in a language other than Java, take
a look at Spring Batch. If historic success provides even the slightest
indicator of future success, than Spring Batch will be another exciting and
innovative addition to the Spring Suite.
The Microsoft Live Search Maps update to include Firefox support that I blogged about a couple of weeks ago was released sooner than I expected. The updated maps API
supporting Firefox has not yet been released but word has it that this is imminent as well. I’ve put together a brief screencast of Live Search Maps running in Firefox. Omitted from the screencast are the features that have been available in Firefox for a while, like bird’s eye view. Focus is given explicitly to navigating with the 3D control.
The Camtasia Studio video content presented here requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.
When running
the 3D control, you can turn detailed building rendering on or off from the
options link in the upper right corner of the screen. Detailed rendering chews
up more space but looks a whole lot better. It looks like Microsoft is
definitely taking the geospatial market seriously and is out-innovating Google
in this area. Cross browser 3D support (albeit limited to Windows), bird’s eye
views, and other features are real eye catchers. In the 3D realm, I like
Microsoft’s approach to creating the 3D space on their own. Google might have
overextended the community participation concept with Google Earth’s philosophy of user-created 3d
models. Do we really need 60 different virtual models of the Empire State
Building? That seems just
a bit too confusing. Still, if you look at the number of mashups built using
the respective mapping APIs, Microsoft still has a lot of catching up to do. Either
that or folks just aren’t willing to admit that Microsoft might actually have
something here.
The recent announcement that Google will support GeoRSS in addition to KML as a data format for geographic content in Google Maps is long overdue. This is one of those rare areas where Google trailed both Microsoft and Yahoo and did not seem at all willing to budge. Google's announcement also seals the deal on GeoRSS as the way to syndicate geo-specific data. However, despite the obvious importance of GeoRSS, there is little written material on producing GeoRSS feeds.
 I promised a brief tutorial on creating a GeoRSS feed with my post on Yahoo's Tag Maps. More specifically, my post will focus on a boundary update GeoRSS feed. That is, you pass in the maximum and minimum latitudes and longitudes for your map in question and only data about the points that correspond to that particular latitude / longitude box is actually fetched. Obviously, if the user interacts with the map (i.e. panning or zooming), you can use the map's API and some AJAX'y goodness to make calls to the GeoRSS feed to pick up a new set of points that correspond to the updated map's boundaries.
The code below represents the most rudimentary and explicit way to construct a GeoRSS feed using ASP.NET and C#. For the purposes of illustration, no third party GeoRSS libraries are used. It's all basic I/O, streams, and very manual XML construction. Also note a single monolithic call in Page_Load, lack of exception handling and parameterized queries may or may not be the way you want to do things. Try it out though; it does what it's supposed to do really well. If you have any comments or corrections, just drop me a line.
I plan on posting a follow up in a couple of days with a live GeoRSS feed. I just need to find a nice sized set of simple data that I can load into a database and point my code at. Expect to see this soon.
using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Xml;
public partial class BlogGeoRss : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { this.Response.Clear(); this.Response.ContentType = "text/xml"; this.Response.ContentEncoding = System.Text.Encoding.UTF8; System.IO.MemoryStream stream = new System.IO.MemoryStream(); XmlTextWriter XMLWrite = new XmlTextWriter(stream, System.Text.Encoding.UTF8); XMLWrite.WriteStartDocument(); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteStartElement("rss"); XMLWrite.WriteAttributeString("version", "2.0"); XMLWrite.WriteAttributeString("xmlns:georss", "http://www.georss.org/georss"); XMLWrite.WriteAttributeString("xmlns:gml", "http://www.opengis.net/gml"); XMLWrite.WriteWhitespace(Environment.NewLine);
XMLWrite.WriteStartElement("channel"); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("generator", "geoglue.com"); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("title", "GeoGlue GeoRSS Feed"); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("language", "en-us"); XMLWrite.WriteWhitespace(Environment.NewLine);
// Pick up the query strings for the latitude / longitude boundaries float UpperBound = 0F, LowerBound = 0F, LeftBound = 0F, RightBound = 0F; try { UpperBound = float.Parse(Request.QueryString["UpperBound"]); } catch (Exception ex) { }; try { LowerBound = float.Parse(Request.QueryString["LowerBound"]); } catch (Exception ex) { }; try { LeftBound = float.Parse(Request.QueryString["LeftBound"]); } catch (Exception ex) { }; try { RightBound = float.Parse(Request.QueryString["RightBound"]); } catch (Exception ex) { };
// Build the item nodes for each of the specific tours SqlCommand cmd = new SqlCommand("SELECT Name, Description, Latitude, Longitude " + "FROM TOUR WHERE (Latitude < @UpperBound) AND (Latitude > @LowerBound) " + "AND (Longitude > @LeftBound) AND (Longitude < @RightBound)", new SqlConnection(ConfigurationManager.ConnectionStrings["GeoGlueDev"].ConnectionString)); cmd.CommandType = CommandType.Text; cmd.Parameters.Add(new SqlParameter("@UpperBound", SqlDbType.Float)).Value = UpperBound; cmd.Parameters.Add(new SqlParameter("@LowerBound", SqlDbType.Float)).Value = LowerBound; cmd.Parameters.Add(new SqlParameter("@LeftBound", SqlDbType.Float)).Value = LeftBound; cmd.Parameters.Add(new SqlParameter("@RightBound", SqlDbType.Float)).Value = RightBound; cmd.Connection.Open(); SqlDataReader dr = cmd .ExecuteReader();
while (dr.Read()) { XMLWrite.WriteStartElement("item"); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("title", (string)dr["Name"]); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("description", (string)dr["Description"]); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteElementString("georss:point", Convert.ToString(dr["Latitude"]) + " " + Convert.ToString(dr["Longitude"])); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteEndElement(); XMLWrite.WriteWhitespace(Environment.NewLine); } cmd.Connection.Close();
XMLWrite.WriteEndElement(); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteEndElement(); XMLWrite.WriteWhitespace(Environment.NewLine); XMLWrite.WriteEndDocument(); XMLWrite.Flush();
System.IO.StreamReader reader; stream.Position = 0; reader = new System.IO.StreamReader(stream); Byte[] bytes = System.Text.Encoding.UTF8.GetBytes(reader.ReadToEnd()); this.Response.BinaryWrite(bytes); this.Response.End(); } }
The more I use Ruby on Rails, the more I become convinced that it is damn near the perfect framework for state government Web-based applications. That said, I don’t know of a single state, local, or municipal government that is experimenting with Rails in any meaningful fashion. I have a bunch of stored Google queries that have yielded woefully little information about the penetration of Rails into state government over the past year or so. I fear that is because there really has been little or no penetration.

When I think through the merits of Ruby on Rails and apply the pragmatic brush of my experience with state governments, I’m torn as to whether I believe Rails will ever gain a foothold in this arena. To articulate my ideas, I’ve enumerated, on one hand, my top three compelling arguments why Rails should be overwhelmingly successful in state government. On the other hand, I’ve listed the top 3 reasons why Rails doesn’t really stand a fighting chance. I’ve omitted what some would consider the “classic” selling points of RoR: ActiveRecord, Scaffolding, etc. By all means, I encourage you to look into these if you’re new to Rails. It’s just that they aren’t particular to adoption in state government. In the spirit of remaining optimistic, I’ll list the top 3 reasons Rails has a chance first.
Top 3 Reasons Rails Could Find a Home in State Government
- Convention Over Configuration – With this mantra, the Rails community initiated a full-frontal attack against the J2EE crowd (pre-EJB3, have you), where XML configuration files had become the tail wagging the dog. Ruby on Rails, on the other hand, makes all sorts of assumptions about what how things will work and requires developer intervention as the exception rather than the norm. In an environment where developers really do work an 8 hour day (or less), focus on delivering functionality and not on tweaking and re-tweaking the application architecture means significantly greater productivity.
- Painless Objects – For many developers, especially those transferring from procedural languages like COBOL or Visual Basic, objects do not come naturally. I’ve seen many state government developers spend years trying to catch onto the concept and still not get it. In Rails, objects just work out of the box, knowing how to deal with the database, providing easy validation hooks and manageable relationships. As a bonus, Ruby tends to be less intimidating to look at for COBOL or classic VB developers than do the C family of languages (C# and Java, in our case).
- Embodiment of Best Practices – From unit tests and separation of concerns to database migrations and standard environment definitions, everything is built into Rails. These things can certainly all be done in the Java and .NET worlds, the practices and tools just seem so much more external to the way of doing things and have not been universally integrated into the standard way of doing things in these languages. As an example, how many C# texts talk about unit testing? How many RoR texts don’t talk about unit testing?
Top 3 Reasons Rails Will Fail To Find a Home in State Government
- No Salesforce – Surprised that I didn’t mention cost in the reasons contributing to Ruby on Rails success in state government? That’s because it isn’t. The fact that the entire RoR stack is free means less “conventional” ways to make money on the software side of things. You won’t find IBM, BEA, or Microsoft pitching Ruby on Rails solutions to state governments. Furthermore, the large system integration vendors won’t be pitching it either. Without the software vendors and the SI’s, it’s really hard to get in the door at state governments.
- Knocked as Not Enterprise-Worthy- Ruby and Rails have been knocked since their inception as great for hobbyist but not enterprise worthy. This is a knock that open source software gets in general and when it’s a scripting language to boot, you might as well be buying your technology from Toys-R-Us. For the real story on this, I suggest that you take a look at Dare Obasanjo’s classic blog post My Website is Bigger Than Your Enterprise. Dare’s points are very good, and although they’re not 100% accurate, you gotta think, “if this works for Google and Yahoo, why can’t it work for me?”
- No Formalized Training Program – This may sound even more ludicrous than my first two points. What’s the right way of saying this… “it’s true.” Believe me, it’s a known fact that until there is formal training available for a technology and the big vendors are pitching it, it’s not enterprise worthy. Right?
For those Rails developers using RadRails as your IDE, you might have noticed that, in the last several days, the RadRails site has slipped off of the face of the earth. Due to a very unfortunate run-in with their registrar and DNS provider, the nice folks at RadRails are apparently stuck in DNS purgatory. This little mishap coincided with the announcement of the Aptana IDE / RadRails merger. Due to the site outage, many folks missed out on the announcement all together... so I'll repeat Aptana and RadRails are merging. You can now find the mirrored RadRails site here. The location of the RadRails download on SourceForge has not changed.

Aptana has posted a brief roadmap for the new combined product. This should be exciting new for folks using RadRails. It was apparent that RadRails grew far beyond the initial expectations of its creators and, as Ruby on Rails skyrocketed in popularity, support was going to be an issue. The creators of RadRails did a great job of maintaining and expanding the IDE for a long time. They then made the greatest of sacrifices and, instead of letting their product die on the vine, they merged it with a likeminded product for the greater good of their RadRails users. It would be great if all open source project owners functioned in this fashion. 1 or 2 great products is much better than 9 or 10 mediocre products.
If you haven't tried out Aptana, I encourage you to give it a look. It's a great Eclipse-based JavaScript IDE. With planned support for RHTML integration and hopefully more extensive code assist capabilities to come, there is much promise in this merger. Not that it is required, by any means, but a high quality IDE will only serve to further Ruby on Rails case and attract more and more developers from the Java and .NET camps to at least give RoR a look.
|