views:

40

answers:

1

I started a project a while back using the following architecture from Adobe Developer Article talking about Creating marketing platforms in Flex. I did my first set of coding locally forgetting that my server did not handle Tomcat. So I said okay, and cut some corners and then some other limitation came up and I cut some more corners. Eventually for a good week or two, it was trying to get the project working with making the ends meet. Layers started to merge.

In the end I used a

PureMVC (Presentation/Client) -> ZendAMF (Communication) -> MySql (Data) Layout.

It worked but I never felt as though I had some layer just to take care of all the SQL calls to the data.It just felt hacked together

So should I keep the above setup and just start from the presentation layer and move downwards like they said in the article or is there a better layering (based on a hosting plan that does not handle Java) I could accomplish ?

NOTE: I would just ask the adobe guys but they barely reply on their site.

Thanks !

UPDATE: My current hosting plan - http://www.godaddy.com/Hosting/Legacy.aspx?ci=9009#details (Economy)

A: 

You jump around a bit; I'm not completely sure what information your after.

There are many different ways to architect an application; I see nothing unusual with the approach you describe.

Many projects use an architecture similar to what you describe. With Flex on the front end (using PureMVC, Cairngorm, or some other Framework); some form of Middleware (I Guess you're using PHP and ZendAMF; but you could also use .NET, Java, ColdFusion or any serer side language) and some data store ( MySQL).

In the middleware (AKA PHP / CF / Java / etc.. ); a lot of folks create a service layer that handles remote communications from front ends , such as, a Flex app. The service layer can often be reused.

Behind the service layer there is often a model of sorts which sometimes includes major business logic.

www.Flextras.com
Based on the current Hosting Package I am doing I cannot use Java,.NET or ColdFusion. At first I played with other setups including Spring and Hibernate. What I am trying to say is how to achieve a good setup while on a economy linux hosting package. I could just suck it up, go deluxe and get plans that handle CF,Java but I am not. My Current plan : http://www.godaddy.com/Hosting/Legacy.aspx?ci=9009#details (Economy)
phwd
You seem to be confusing technology, architecture, and frameworks. Your original posts mixes them also. When developing an Model View Controller (Service) style architecture; it doesn't matter how you implement each piece. If you use Flex, PHP, and MySQL that's just as good as Flex, ColdFusion, and SQL Server. Any piece can be replaced.
www.Flextras.com