Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Sunday, April 12, 2009

RAM as the new disk

I have been reading on some extreme scaling solutions being used by FriendFeed, LinkedIn etc... Some links to share for your reading pleasure (though I doubt how many of the readers to this site actually are in hardcore tech anymore...)

At the heart of all this is a concept of using in-memory caches as the primary data retrieval layer instead of just being a cache. This is a big shift in thinking about application server tier design. 

"The more things change.. the more they remain the same". In 2003, when I started my first job, we used to make fun of former C++ devs coming to Java server design and caching the entire database into memory on Weblogic startup so that they could write familar code. Indeed my 2nd project was undoing all this to make a system scalable. Now the clock is back to 12.


AND

IBM Websphere Extreme Scale!! [Good luck with the licensing]

Sunday, March 29, 2009

Tuesday, June 10, 2008

The best corporate slogan ever?

Has to be "The network is the computer" for Sun Micro.

I first read this in PCQuest or one of the other computer magazines in India around '96. I didn't get it at that time. Growing up in a world of GWBasic and MS-DOS 6.0, I always used to wonder what was special about the hardware that SUN provided. Why do they have to charge Rs. 10 lakhs (1 million) for a server (in those days)? What did these servers do anyway that a PC could not do? What is different about a SUN workstation?

But oh man... this slogan encapsulates EVERYTHING about the information age. Everything about the internet. It is heartbreaking to see a company that can see the future, but cannot do anything to make money off it.

Tuesday, June 3, 2008

A Few Good Men - The Project Delivery Version

I eat breakfast three hundred yards away from four thousand CMMI SQA's who are trained to pick me off. So don't think for one second that you can come down here, flash an SOA card, and make me nervous.

Son, we live in a world that needs working software, and those software need to be delivered by men like me. Who's gonna do it? You? The Enterprise Architects? I have a greater responsibility than you can possibly fathom. You weep for your SOA and curse the project team. You have that luxury. You have the luxury of not knowing what I know: that discarding your SOA, while tragic, probably saved L3 Support from countless tickets. And that my existence, while grotesque and incomprehensible to you, brings in the budget. You don't want the truth - because deep down, in places you don't talk about at parties, you want me running the teams.

You need me in those teams.

We use words like scalability, throughput, latency. We use these words as the backbone of a life spent defending something. You use them as a punch line.

I have neither the time nor the inclination to explain myself to a man who rises and sleeps under the blanket of the very projects that I deliver, and then questions the manner in which I provide it! I'd rather you just said "thank you" and went on your way. Otherwise, I'd suggest you pick up a Gartner magic quadrant and stand a post. Either way, I don't give a damn what you think you are entitled to!



Inspired by A Few Good Men...
"You can't handle the truth! Son, we live in a world that has walls. And those walls have to be guarded by men with guns. Who's gonna do it? You? You, Lt. Weinberg?

I have a greater responsibility than you can possibly fathom. You weep for Santiago and you curse the Marines. You have that luxury. You have the luxury of not knowing what I know: that Santiago's death, while tragic, probably saved lives. And my existence, while grotesque and incomprehensible to you, saves lives...You don't want the truth. Because deep down, in places you don't talk about at parties, you want me on that wall. You need me on that wall.


We use words like honor, code, loyalty...we use these words as the backbone to a life spent defending something. You use 'em as a punchline. I have neither the time nor the inclination to explain myself to a man who rises and sleeps under the blanket of the very freedom I provide, then questions the manner in which I provide it! I'd rather you just said thank you and went on your way. Otherwise, I suggest you pick up a weapon and stand a post. Either way, I don't give a damn what you think you're entitled to!"

Friday, April 25, 2008

PSP: The tipping point

It seems every 2nd person under the age of 18 on the train is engrossed in their PSP. And quite a few office-goers too... Has the PSP crossed the tipping point into mass usage?

Sunday, April 15, 2007

The Gartner hype cycle

One very original concept from among the IT analyst firms is the "Hype Cycle" from Gartner. It maps out the distinct stages in the adoption of new technologies -
-- Technology trigger

-- Peak of expectations
-- Trough of disillusionment
-- Slope of enlightenment
-- Plateau of productivity

Mapped out spatially, the hype cycle would look like this...


In my opinion, the hype cycle is a sexed-up well-marketed version of the following Axiom -
"Any new concept is over-hyped in the short term and under-hyped in the long term"
(Keep this in mind when you want to plan your cross-sector career moves...)


Examples of over-hyped technologies that will be big in the future -
-- RFID
-- Nanotech
-- Software offshoring
-- The mobile phone as the sole computing device for most of the world
etc etc

Examples of over-hyped concepts that have started making a huge impact (good or bad)
-- Video streaming
etc etc

Every year, Gartner places the different emerging technologies into the graph based on their understanding of where the hype is leading. The 2006 hype cycle is here (Click on image for bigger picture etc etc)...


More about the hype cycle straight from the horse's mouth.


Monday, April 9, 2007

My smartphone buying guide

I am in the market for a new mobile phone. If you have opinions on my shortlisted phones, do leave them in the comments.

What I am looking for in the phone
Prioritized, this is the order...
-- Great voice quality and volume
-- Speakerphone. I am in conference calls daily
-- Great camera. Space to store a good number of photos
-- Looks good
-- Internet browsing. The CBD area will soon be covered in WLAN
-- Music player. Doesn't need to be a "great" music player. Should be able to play a few songs
-- Allows me to write my own Java apps (at least) and download them to the phone

The budget
S$1000

The shortlist














Nokia N95



Nokia N93i



Nokia N91



Nokia N80



Nokia N73



SE K800i



SE K810i



SE W880i




Feature Comparison














Nokia N95

Camera: 5 M
Cam zoom: Digital
Cam Flash:
LED
Cam Stabiliser: No
Storage: 160 MB
Exp Storage: Micro-SD upto 2 GB
Sp-phone: Yes
Looks: Plump

Screen: 240X320 TFT
Colors: 24-bit
Connect: WLAN, 3G, GPRS, BT, USB, IR

Extra: GPS

Nokia N93i

Camera: 3.2 M
Cam zoom: Optic
Cam Flash: LED
Cam Stabiliser: No
Storage: 50 MB
Exp Storage: Mini-SD upto 2 GB
Sp-phone: Yes
Looks: Awesome

Screen: 320X240 TFT
Colors: 24-bit
Connect: WLAN, 3G, GPRS, BT, USB, IR



Nokia N91

Camera: 2 M
Cam zoom: Digital
Cam Flash: LED
Cam Stabiliser: No
Storage: 8 GB
Exp Storage: No

Sp-phone: Yes
Looks: Trying too hard to be cool
Screen: 176X208 TFT
Colors: 18-bit
Connect: No WLAN, 3G, GPRS, BT, USB, No IR



Nokia N80

Camera: 3 M
Cam zoom: Digital
Cam Flash: LED
Cam Stabiliser: No
Storage: 40 MB
Exp Storage: Mini-SD upto 2 GB
Sp-phone: Yes
Looks: Plump

Screen: 352X416TFT
Colors: 18-bit
Connect: WLAN, 3G, GPRS, BT, USB, IR



Nokia N73

Camera: 3.2 M
Cam zoom: Digital
Cam Flash: LED
Cam Stabiliser: No
Storage: 40 MB

Exp Storage: Mini-SD upto 2 GB
Sp-phone: Yes
Looks: Good
Screen: 240X320
Colors: 18-bit
Connect: No WLAN, 3G, GPRS, BT, No USB, IR


SE K800i

Camera: 3.2 M
Cam zoom: Digital
Cam Flash: Xe
Cam Stabiliser:
Yes
Storage: 64 MB

Exp Storage: Mem Stick upto 1GB
Sp-phone: Yes
Looks: Great
Screen: 240X320
Colors: 18-bit
Connect: No WLAN, 3G, GPRS, BT, USB, IR


SE K810i

Camera: 3.2 M
Cam zoom: Digital
Cam Flash: Xe
Cam Stabiliser:
Yes
Storage: 64 MB

Exp Storage: Mem Stick upto 1GB
Sp-phone: Yes
Looks: Great
Screen: 240X320
Colors: 18-bit
Connect: No WLAN, 3G, GPRS, BT, USB, IR


SE W880i

Camera: 2 M
Cam zoom: Digital
Cam Flash: LED
Cam Stabiliser:
No

Storage: 16 MB + 1GB expandable
Exp Storage: See above
Sp-phone: Yes
Looks: Good
Screen: 240X320
Colors: 18-bit
Connect: No WLAN, 3G, GPRS, BT, USB, No IR


My impressions














Nokia N95

S$1100

Feature and connectivity packed.

Marketed as a nextgen PDA, but no touchscreen. D'Oh!!

Cam not good as SE K800 series. LED flash and no stabilization.

Looks OK only...

Price/Value ratio is too high

Nokia N93i

S$1000

Feature and connectivity packed.

Cam is good with optical zoom. But LED flash spoils night photos

Awesome looks!!

Price/Value ratio could be better




Nokia N91



Music phone, not a cam phone.

Lots of memory.

Screen sucks

Rejected











Nokia N80

S$ 500

Camera not good.


Looks bad

Rejected













Nokia N73

S$ 400

Looks good

Cam not good as SE K800 series. LED flash and no stabilization.

Good value for money

SE K800i

S$ 400

Great camera

Subtle good looks

Great value for money



SE K810i

Not out yet

Same as K800i and looks better. But is not out yet







SE W880i



Camera not to level of SE K800i.

Rejected






Parting shot
My rational self draws me to the K800i. But my reptilian primal brain might spring for that awesome-looking N93i tomorrow.

Friday, March 23, 2007

MapReduce plug-in for Eclipse. Now go and change the world...



Over the years, Google has developed some truly awesome "force-multiplier" architectural software components. These have helped them roll out hugely-scalable and high-performance applications very very fast at low low cost. Among them are -
-- MapReduce parallel computation framework
-- BigTable database
-- Google File System

MapReduce is a framework that -
-- Allows a programmer to define a program that needs to be run in parallel over a huge cluster of computers
-- Executes the software program in parallel by distributing it to a huge cluster, monitoring the execution progress and collecting the results

MapReduce has lowered the bar within Google for writing hugely-parallel applications. Mostly, the programmer has to worry only about writing the program in compliance with some MapReduce framework requirements. The entire parallelization and its enormous complexity is handled and hidden by the framework, freeing the programmer to concentrate on the actual functionality performed by his/her program. Within Google, MapReduce is used for building the search index etc etc.

Google has explained their MapReduce framework in this excellent paper by Jeffrey Dean and Sanjay Ghemawat. Based on this paper, Hadoop is an open-source implementation of MapReduce components.


Now, IBM has made available a plug-in for Eclipse that simplifies the development and deployment of MapReduce programs meant to be run within Hadoop. So all you brilliant engineers out there, go ahead and code the next parallel program that will change the world etc etc

Google is using Hibernate ORM? That's surprising

Update: Explanation of database partitioning techniques updated and enhanced. See towards the end of the post...

Update: Lots of people are coming here from the google-code blog. You might want to check out my posts on Simplicity, Management, Software Development, Career, or the main blog. If you like the content, you can subscribe to the feed. Thanks.


Learning that Google internally uses the Hibernate Object-Relational Mapping (ORM) framework brought my opinion of Google down by quite a few notches.


I strongly believe that in performance-critical applications, database transactions and SQL queries are best written and managed by the developer rather than by an over-generic ORM framework. If you have a low-usage application that will be simultaneously used by at the most 300 users, then go ahead, use an ORM layer and knock yourself out. But it is likely that if you have written a good app, it will become more and more popular, and you will start hitting performance problems soon. Any Google consumer application would be at the high end of performance-criticality requirements.

The reasons that have shaped my views are as follows -
-- Typically any application spends 25% of the time executing application code, and the other 75% executing database queries (Rough estimates based on my experience)
-- So if you want a high-performance app, optimize the data access layer
-- An ORM tool is very generic. It is meant to support multiple RDBMS systems and a huge variety of usage scenarios. So these are optimized for flexibility and not performance
-- Optimizations on the data access layer are best achieved by optimizing the SQL. You know your domain model and data schema best. So you are the best person to write the SQL
-- ORM tools like Hibernate do not allow you to write your own SQL. Instead you give definitions of your database tables and map them to your business objects. Hibernate automatically generates SQL from these relationships

Many people take issue with this and say that to manage transactions and write optimized SQL, you need very good developers, who are expensive and difficult to attract and retain.
My response: Of course, if you need to create outstanding apps, you need good developers. If you can't attract and retain them, that's your management problem. As for the cost aspect, hire a great developer, fire 5 average ones. You will get more work done, and save money.


Anyway, all the above is deviating from the main topic. Which is that Google has open-sourced Hibernate Shards, which is an extension to Hibernate to enable Horizontal Partitioning of Data.

What is Horizontal Data Partitioning? Well, if your app requires access to large large amounts of data (hundreds of millions of records), and performance is critical, and you have a large number of users, then storing all your data in one database will hit problems. This is because there will be too much read/write to the same database storage. One solution is to split the data in a big database table into "horizontal partitions" based on some particular criteria, and store the partitions in separate databases. For example, you will group your user profile table based on the user's location - US, Europe, Asia - and store each group of profile data in a separate database. This is called horizontal data partitioning as you are splitting the data at the "row level" within a database table.

Another option is Vertical Data Partitioning. Here, you partition the data in a database by putting different high-volume database tables into separate databases. For example, if you have lots of User Profiles, Messages, Transactions etc etc in separate tables, then with vertical partitioning, you will store each of these tables in separate databases. This is called vertical data partitioning as you are splitting your data at the "table level" within a database.

Sunday, March 11, 2007

The problem with Geni

Geni is a social networking application for genealogy. (From Wikipedia) Genealogy "is the study and tracing of family pedigrees. This involves the collection of the names of relatives, both living and deceased, and establishing the relationships among them based on primary, secondary and/or circumstantial evidence or documentation, thus building up a cohesive family tree".

Specifically, Geni allows you to start filling in your family tree. You can add relatives with their email ID's, and emails are fired off to ask them to join Geni. Once they join, they add more info about themselves, start filling in their relations, and so on, and in some time you have a map of your extended family with all the information that the family members have chosen to disclose.

Charles River Ventures has invested US$ 10 million in Geni, valuing the company at US$100 mill. But I have my doubts about the viability of this application. These views are also posted as comments in a VentureWoods discussion on Geni.

On the positive side, Geni is a very slick application. You can easily draw up a family tree, and makes it very easy to invite other family members to share their info and start adding relations they know.

But the service has 2 major shortcomings -
The "Getting Laid" feature is not there
The single most important feature that a social networking app should have is that it should help the user to get laid. Even if that doesn't happen, the user should think that it will increase the chances of him/her getting laid.

Thats it. This is the "critical path" feature. If directly (Orkut, Facebook, Myspace) or indirectly (LinkedIn: Better job --> more money --> better potential) this feature is not there, then users won't stick around 1-2 hours a day writing scrap entries, exploring photos and seeing profiles of friends of your friends, and adding more and more unique stuff about themselves to their profiles.

Geni cannot help users get laid. If that happens, it would probably be illegal :-).

Relevance of the application in markets outside the US
Geni applications will be relevant for India only 10-15 years down the line. It makes sense in the US where you completely grow up in nuclear families with very little contact with your grandparents, cousins etc. However, in India, even though many of us would have grown up in a nuclear family in a city, we had very close relationships with grandparents, cousins and other members of the extended family. So the usefulness of “discovering” your relations is not there. Even considering only the US market, I would think a typical user would use his application obsessively for a week or two. After that you start getting irritated with requests from your relatives and stop hanging around.

Tuesday, March 6, 2007

A way to see if some thought has gone into a laptop's design

Sit at the laptop, crank up some music and start typing.
If your palms are obscuring the speaker, then the dumbos haven't used the laptop they designed.

Wednesday, February 28, 2007

Why "Simplicity Works Everytime"

Some explanations on the title of this blog...

From my work in delivering, designing, and developing high-performance financial systems, I have been struck by the fact that the most usable, most loved (yes that is possible), best performing, and highly scalable systems have simplicity as their underlying theme.

Now simplicity can be a highly subjective topic. So let me clarify what I mean...


You can broadly classify any system into one of these two categories -
1.) A User-Driven System. This is any system with a customer-facing user interface. (Technical support user-interfaces do no count here)
2.) A Technical System, i.e. a non-User-Driven system. This could be a server process that runs independently of any customer interaction.


In the presence of competition, the success of a user-driven software application is a function of how much the customer likes/loves using it. This is exponentially proportional to it's the ease of use. For most users, software is just a tool to get some work done. It is not a primary part of their existence. Users love software that allow them to finish their task with the least amount of thinking so that they can focus on the really important things in life. So for user-driven software, simplicity equates to "simplicity for the user", not "simplicity for the developer". In order to provide this simplicity to the user, the underlying technical design might have to be complex, very complex. Sorry, there is no way around this.

And finally, user-driven software attain the nirvana of simplicity when they become humane. These software forgive our human follies, and guide us ever so subtly in our tasks.

Let me tell you why I absolutely love iTunes. It has this great feature called "alphanumeric sorting". In layman's terms, this means that a song titled "Eagles - Track 10" will come after "Eagles - Track 9", and not "Eagles - Track 1" as happens in Windows Media Player. iTunes also has another amazing feature where they discard the word "The" in the band name during sorting. So "The Cardigans" comes under C, not T.


For pure technical systems, things are different. The best technical systems have very very simple technical designs. Great technical systems do not have highly normalised data schemas; Simple technical systems are not in love with their reflection; Simple technical systems actually hardcode things that will never ever change; Simple technical systems do not try to retrieve data using humongous object-relational mapping layers; Great successful systems mostly never use EJB's; Great systems solve one thing very well.

In DB, we bought a 3rd-party scheduling software that used 90 Oracle tables internally for managing clustering. The thing bombed in actual production usage. An internal team rewrote the same functionality with some simple code that used 9 Oracle tables for managing a load-balanced cluster. It is so successful that other teams in DB are using it, and we are thinking of making it open-source.


The problem is that as an industry, we have completely lost the concept of simplicity. We have become experts in abstracting any user request into a generic problem, and spend ages building generic systems that look great to us in our mental sheet of paper, but hideously complex at runtime. We have forgotten that software is actually about working applications. Instead of solving user problems, we have all become self-anointed architects.


One of the sidey things I will be doing thru this blog is to keep up a steady stream of views and observations on keeping things simple.


"You know you've achieved perfection in design,
Not when you have nothing more to add,
But when you have nothing more to take away"
~
Antoine de Saint-Exupery