Archive for May, 2008

Data synchronization patterns in Flex applications

Flex May 28th, 2008

 

Presentation slides: here
Demo source code: here  

I recently spoke at the Webmaniacs conference in Washington DC.

I spoke about "Client/server data synchronization patterns in occasionally connected clients". I’m uploading the demo files and the ppt files here.

The first part of the talk is pretty general, and I think you can apply it to any kind of occasionally connected client - you may be building it with AIR + LCDS, Flex + LCDS or with AJAX toolkits e.g. Google Gears. The latter half of the ppt & the demo - showcase the features of LiveCycle Data Services (LCDS) that allow users using Flex/AIR to build such apps. It talks about conflict resolution, transactions, batch updates (TODO).

An occasionally connected clients is a software that functions in the same manner while disconnected from the network, as while connected - only with certain restrictions on transactional functionality - the idea is that the user should be least discomforted by disconnections to the network.

I just wanted to get this demo out, it is not polished and some things are not working really but I will keep updating the demo and commenting the source code to make it easier to understand. I’m not using any MVC patterns to avoid adding any complexity to the code. So it is pretty bare bones.

Steps to compile the application:

  1. The application uses LCDS 2.6 beta (available from Adobe Labs)
  2. The application is compiled as a Flex project using Flex Builder 3. (You dont need the project to be a LCDS project, a simple Flex project will do. I create all connections to LCDS server on the fly.)
  3. If you want you can extend it to be an AIR application as well.
  4. The application will run as a simple drop-in to LCDS.

Steps to run the application:

  1. You can see various usecases by running the application.
  2. You will need to run at least two clients at the same time.
  3. The clients start disconnected from the server.
  4. Click on connect, and then fetch data to get the data in the clients.
  5. You can then start playing around with various controls to see how things change.

TODO: I need to put a video demo to show the various functionality.

I will write a more thorough discussion on the topic in a couple of weeks.

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.5 India License.

Adobe launches Creative Suite 4 betas

Adobe Announcements May 28th, 2008

This is a tad late, but this is the most exciting news since launch of AIR 1.0 and Flex 3.0.

Adobe Creative Suite public betas are the next version of the next release of its collection of graphic design, Web development and video editing applications. The public beta versions of Adobe Dreamweaver® CS4, Adobe Fireworks® CS4 and Adobe Soundbooth® CS4 will be free downloads on Adobe labs. Try betas for Dreamweaver CS4, Fireworks CS4, and Soundbooth CS4  and see how the right web tools increase productivity and help our creative professionals create rich, relevant web experiences.

 

Try out the betas, and get a chance to peek into the future.

Plus, you can also give a holler on enhancements and issues to the dev team. How cool is that?

blank