Sunday, March 15, 2009

Create Rich Internet Apps With Java Fx

It took almost a year and a half for JavaFX 1.0 to be released ever since Sun announced their new Rich Internet Apps (RIA) framework, JavaFX, way back in May '07. It has been available as beta preview before its first release on 4th Decemeber '08, and we have already done an article on developing apps using JavaFX Script in Feb 08 issue. With the release of JavaFX 1.0, it's interesting to see how it will reshape the RIA space. Today, web has evolved into a very dynamic and high value media. And Sun has always been lamented for not having a platform that would enable Java developers to create media rich applications, even though Swing had always been there as a set of GUI components that enabled creation of a front-end for desktop applications. With JavaFX, developers would be able to integrate high value media services into their RIAs, be it a browser based or a desktop application. http://www.javafx.com

Saturday, March 14, 2009

The 10 biggest mistakes IT managers make

Working with IT managers on a regular basis allows me to see some great management styles and some really poor ones. On the lower end of the scale, I see IT managers make 10 major mistakes fairly often. Some of these errors have even cost some managers their jobs.
Note: This list is based on the article The top ten IT management mistakes and how to avoid them. It’s also available as a PDF download.
1: Focusing on technology and not the business
The typical IT manager comes from a technical background in either infrastructure or development. Based on their technical roots, they tend to focus their efforts in their expertise when in fact they should be looking for ways to support, enable, and improve the business. To be successful, IT managers must become business leaders and turn their focus and expertise to business issues and problems first.
2: Thinking “out of sight is out of mind”
It’s important to remember that in IT, no news is not good news. IT managers tend to trudge along without ever looking at their progress. The most powerful task you could ever do is an assessment. There are several ways to do this. You can do a SWOT (Strengths, Weaknesses, Opportunities, and Threats) analysis or you can do a full-blown formal IT assessment. You might even use a scorecard system to track where you are as a department. You can download a free scorecard developed specifically for this purpose.
3: Thinking that your team has it covered
In the TV show The Apprentice, so many teams ended up in the boardroom because the leader delegated a job but didn’t follow up to make sure it was done right. Following up is not micromanagement. It’s your job as a leader to ensure that the task gets done correctly.
4: Not inspecting what you expect
This mistake has its roots in mistake number 3 but can be carried forward into other aspects of IT. For instance, you could possibly expect great performance out of your servers but may not have a system to make sure they’re running at peak capacity. This ultimately leads to poor planning, budgeting, staffing, etc. If you want to avoid this common pitfall, make a comprehensive list of expectations for your entire department. This could include critical projects, network and server performance, client satisfaction, etc. Double-check the list to make sure you are inspecting all expectations on a regular basis. Keep a checklist or develop a daily disciplines worksheet to follow everything that needs daily inspection.
5: Not creating a partnership with business management
I find a great deal of IT managers reporting to operations and finance personnel instead of presidents and CEOs. The only way IT can be an effective and strategic element to business is through partnership with business executives. You must lead and influence your reports, peers, and leaders to have a maximum impact on the organization. The quicker you can get on the leadership team, the quicker you will have the ability to execute on number 1.
6: Burning yourself out
I can’t tell you how many IT managers I coach who have not had vacations in a year or longer and routinely work more than 70 hours per week. This is not only a mistake, but it’s a formula for disaster. Sometimes the thinking is that your business can’t live without you. The truth is, your business cannot live with you burning yourself out. It only leads to lowered productivity and, eventually, your giving up or getting disgruntled. Do yourself, your business, your employees, and your family a favor and take some time off.
7: Not testing your backup solution
I always tell my new IT managers that one of the most important aspects of their jobs is ensuring a reliable backup. Breakdowns in technology hardware are inevitable. The next best thing is fault tolerance, but I have even seen that fail. Don’t think for a minute that if you have tapes and if everything looks okay in your system that everything is okay. Make sure you test backups regularly. Do test disasters and make sure you can recover.
8: Not asking for help
Too often, I’ve seen costly mistakes made by managers and technicians who try to solve an issue alone without informing anyone or even reading the manual. This is a costly mistake. If you get in over your head, do the right thing and seek help. The key to successful IT management is not knowing the right answers; it’s being able to find them and execute a solution as quickly and cost effectively as possible. Don’t hesitate to bring in the experts where necessary.
9: Not devoting time to personal development
There’s no excuse for this mistake. Personal development is not your company’s responsibility — it’s yours. I can always tell a person’s success potential by the last five books they’ve read and by the seminars they attend. Every IT manager should be devoting at least 30 minutes a day to personal development. The truly successful devote even more — in some cases, upwards of two hours or more per day. The most common excuse I hear is the lack of time or money. The answer lies in the successful management of money and time.
10: Not finding a mentor or coach
The quickest route to success is to find someone who has been there and then emulate that person. The quickest road to pain, hardship, and failure is to go the journey alone. Whether you’re in management or not, you should always have a mentor or coach and you should always be mentoring or coaching someone else. A coach will help you achieve more than you could by yourself by imparting wisdom, accountability, and crucial advice where necessary. By coaching or mentoring someone else, you’re doing the same, but you’re also solidifying your own concepts by teaching them to others.

The cloud storage market is accelerating fast - despite naysayers and alarmists - and Amazon’s S3 is leading the charge. Storing over 40 billion files for 400,000 customers Amazon is the one to beat. How do they it for pennies per GB a month? Read on.
I attended FAST ‘09, the best storage conference around, where Alyssa Henry, S3’s GM, gave a keynote. Amazon doesn’t talk much about how their technology works, so even the little Alyssa added was welcome.
Aggressive goals: A multi-billion dollar business running one of the world’s largest websites, Amazon engineers understand the problem. Their goals reflect both technical and market requirements:
Durable
99.99 availability
Support an unlimited number of web scale apps
Use scale as an advantage - linear scalability
Vendors won’t engineer for the 1% - only the the 80% - DIY
Secure
Fast
Straightforward APIs
Few concepts to learn
AWS handles partitioning - not customers
Cost-effective
One key: Amazon writes the software and builds massive scale on commodity boxes. Reliability at low cost achieved through engineering, experience and scale.
With many components come many failures 10,000+ node clusters mean failures happen frequently - even unlikely events happen.
Disk drives fail
Power and cooling failure
Corrupted packets
Techs pull live fiber
Bits rot
Natural disasters
Amazon’s deals with failure with a few basic techniques:
-Redundancy Increases durability, availability, cost, and complexity. Example: plan for the catastrophic loss of entire data center; store data in multiple data centers.
Expensive but once paid for costly small-scale features like RAID aren’t needed.
-Retry Just like disk drives - it’s quicker for Amazon to retry than it is for customers. Leverage redundancy - retry from different copies.
-Idempotency This is cool. An idempotent actions result doesn’t change even if the action is repeated - so there’s no harm in doing it twice if the response is too slow.
For example, reading a customer record can be repeated without changing the result. So they don’t retry too much there’s surge protection.
-Surge protectionRate limiting is a bad idea - build the infrastructure to handle uncertainty. Don’t burden already stressed components with retries. Don’t let a few customers bring down the system.
Surge management techniques include exponential back off (like CSMA/CD) and caching TTL (time to live) extensions.
-Eventual consistency Amazon sacrifices some consistency for availability. And sacrifices some availability for durability.
-Routine failure Everything fails - so every failure handling code path must work. Avoid unused/rarely used code paths since they are likely to be buggy.
Amazon routinely fails disks, servers, data centers. For data center maintenance they just turn the data center off to exercise the recovery system.
-Diversity Monocultures are risky. For software there is version diversity: they engineer systems so different versions are compatible.
Likewise with hardware. One lot of drives from a vendor all failed. A shipment of faulty power cords. Correlated failures happen
Diversity of workloads: interleave customer workloads for load balancing.
-Integrity checking Identify corruption inbound, outbound, at rest. Store checksums and compare at read - plus scan all the data at rest as a background task.
-Strong instrumentation Internal, external. Real time, historical. Per host, aggregate. When things go wrong, you need history to see why.
-Get people out of the loop Human processes fail. Humans are slow. If a human screws up an Amazon system, don’t blame the human. It’s the system.
Final thoughtStorage is a lasting relationship that requires trust.
The Storage Bits takeAmazon is the world leader in scale out system engineering. Google may have led the way, but the necessity to count money and ship products set a higher bar for Amazon.
Amazon Web Services will dwarf their products business within a decade. I’d like to see them open the kimono more in the future.
Comments welcome, of course. There’s a longer version of this on StorageMojo. And there’s the Amazon CompSci paper Dynamo: Amazon’s Highly Available Key-value Store. Not S3 specific, but close.