Php :: Handling Server Load Efficiently?

Feb 11, 2011

I am building a Flex application using Pure MVC pattern and Zend framework for calling php code on the server. I need to sync some data with my server which is using MySQL as the database. And there are 5 such tables I need to sync. So I call these php functions at regular intervals from Flex and use long polling on php side. The client side code for my subjects lies in 5 different proxies.

Should I send 5 separate requests from each proxy to call the php code which is lying in separate classes. Or should I build a separate proxy to send 1 request from 1 php file and then distribute this data among different proxies on the client side. Which one will be more effecient? Mathematics shows using separate proxies and php classes allow more number of users to be accomodated on the server.Can I write 1 SQL command to fetch data from all 5 tables given they cant be joined on any column?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Handling Communication Between Flash And Server-Side

Jul 19, 2011

Need to find a way for Flash to talk to an ASP.NET server-side script and save some product information directly from Flash into a customer shopping cart...but, how are people handling this communication between Flash and the server-side C#? I want my Flash .swf to browse products and add them to the cart from within' Flash securely. Currently people can browse / Sort the products, but how are people passing information to the Flash movie securely? How are people handling information like session variables? What are people using to use Flash as their only interface tool for logging in, or accessing their account information through a Flash interface?

View 6 Replies

ActionScript 3 :: Handling Public / Private IPs On Developing Of Socket Server

Jan 20, 2011

I am developing a chat server were my users log in using any of my clients applications with a very simple implementation of the TCP protocol. When the user logs into, the client sends a raw text to the server indicating some parameters like username, others, and the most important the WAN ip. This data gets stored on ther server database. After the execution of a algorithm who search for other online user in the database, the server sends to a pair of users the ip and the username of the other user, so later the clients can connect to each other directly wihtout using the server anymore. So, the server acts only like a meet point. Well all this works fine is the users arent inside of a private network, like a wireless router. The clients are programed in AS3 using XMLSocket and the server using VB6 with winsock.

View 1 Replies

Media Server :: FMS 3.5 Says 'Bad Network Data': Error In Handling RTMP Extended Timestamps / ChunkSize?

Jun 3, 2011

For a client, I am working on a project where a live RTMP stream is published to an Adobe FMS 3.5.6 server from a java application, using Red5 0.9.1 RTMPClient code. This works fine, until the timestamp becomes higher than 0xFFFFFF after 4.6 hours, and the RTMP extended timestamp field starts being used. I have already found: when the extended timestamp was written after the header, the last 4 bytes of the data were being cut off. I have fixed this locally, and now the data being sent seems to me to be conformant to the spec. However, FMS still throws an error message in the core log and then kills the connection from the Red5 client. Here is the error message:

[Code]..

View 6 Replies

ActionScript 2.0 :: Handling Exceptions When External Data Doesn't Load

Sep 23, 2010

I'm loading external data from a txt file into a MovieClip. It contains data that is crucial to the presentation viewing. It is necessary to load, not right away but at some point (the sooner the better). When the txt is on the same server it works instantly, but I'm loading data from another server.

Two problems: the onLoad code is stuck if the file doesn't load (connection problem, server down?) and in offline mode what happens if the data is purged out of browsers cache (history problem)?

How can i handle these exceptions?

1. Some code that uses a "timer" to periodically try to load the data again if the connection is slow and the txt doesn't loads the first time?

2. When it doesn't load at all, and the onLoad fails, how can I simulate notOnLoad - exception for data download fail? And retry the dataLoad?

I've already made cross-server data loading possible using crossdomain.xml policy.

The site is still in development. This problem occurred when the server which contains the data.txt was down due to maintenance, and when one of the test-visitors was downloading so much in the background that his connection didn't had enough bandwidth to load data correctly (browser thought he had connection problems).

View 3 Replies

Flash :: Load Video From The Server Load Documents PDF / DOC From Server

Jul 3, 2011

I want to build a software in Flash which can do below things Load Video from the server Load Documents PDF/DOC from Server

View 1 Replies

Actionscript 3 :: Clear An Array Efficiently?

Feb 10, 2010

I've been looking to clear an array in ActionScript 3.[code]...

View 2 Replies

ActionScript 3.0 :: How To Storing Bitmaps Efficiently

Feb 17, 2009

The game that I'm currently making has many bitmaps, for the sheets for various things. Is there a way that I can store these efficiently so my flash file is huge?

View 3 Replies

ActionScript 3.0 :: Reacting To Events Efficiently?

May 3, 2010

I have 9 movieclips in the stage. When I click a movieclip I load an image to it. The below code does this with one movieclip named o1. I feel stupid to just copypaste the code nine times for o1, o2, o3.. etc. What would be more efficient way of doing this?

Code:
import flash.events.EventDispatcher;
import flash.display.MovieClip;

[code]....

View 3 Replies

Professional :: How To Setup Authortime Sharing Efficiently

Jun 3, 2011

I have one fla with a lot of library symbols. At some time part of these symbols were copied to another fla, and updated. Rather than copying the modified symbols back to the original movie, I want to use authortime sharing. So I click on one symbol at a time in the original fla, click source, scroll to the other file in the file chooser, wait for the library to open, scroll to an identically named clip inside an identically named folder ....the source is shown as a full path - is there a way to make it relative (in fact the two fla files reside in the same folder)?

View 1 Replies

Flash :: Professional - New Dev Center Article On Using Pro Efficiently

Aug 30, 2011

Longtime Flash Pro, Flex, and AIR developer, Dmitriy Yukhanov, has written a new article for the Dev Center listing over 60 tips for efficient use of Flash Pro. Categories include: Improving performance Optimizing file size of project assets Developing Flash projects more elegantly Making project files easier to update Most of the tips are illustrated and quite easy to understand. This is one of the most comprehensive articles on this topic that I have seen.

View 1 Replies

Flash :: Efficiently Splicing Items From An Array Using Flex?

Aug 14, 2009

I have overcome a problem, but my solution seems really inefficient and clunky. Please consider this problem:

I have an array collection with articles in.

This array collection is filtered to a currently selected article category. 

There is a cursor bound to a view that shows the current article. When a category is deleted I need to delete orphened articles, I can't use the cursor or collection without affecting the views as they are bound. 

[Code]...

View 2 Replies

ActionScript 3.0 :: Efficiently Adding A Loader Object To 2 Movieclips?

May 21, 2010

My code:

ActionScript Code:
var request:URLRequest = new URLRequest(XMLslides.item.thumbnail[i]);
var tloader:Loader = new Loader();[code].....

Works fine (it's in a for loop, ...after the main XML object is loaded)... but this:

ActionScript Code:
var request:URLRequest = new URLRequest(XMLslides.item.thumbnail[i]);
var tloader:Loader = new Loader();[code].....

Causes those thumbnails to be attached to the masked buttons, but not the new ones.Is there a way to do this without creating another loader object? I want to keep it efficient.

View 3 Replies

ActionScript 3.0 :: Efficiently Scrolling Over Large Dynamically Generated Terrain?

Aug 13, 2009

I've created a game engine using bitmaps and box2D, the floors for the game engine is made out of a number of lines which then has a bitmap fill applied to it, then it adds a little bit of grass on top of these floors....Here's a quick video to show you what I'm talking about:http:[url].....

This all works fine on my main computer, but when I move over to my netbook, I struggle to get 10fps... Because of this I am now looking for as many ways as possible to improve the efficiency of my code. So far what I've done that appears to of had some positive effect is:

- Use bitmapCaching on layers where it's appropriate to do so.

- Use scrollRect to scroll on only the necessary part of each of the layers.

However I'm still having big problems when it comes to scrolling the terrain on my netbook - are there any ideas that anyone might have which might be able to speed up the game slightly?

View 1 Replies

ActionScript :: Extract A Subset Of Objects From A Sorted Array 'efficiently'?

Jan 25, 2010

I have a browser-deployed Flash app (not an AIR app with access to SQLConnection) and it fetches JSON results from a remote server via HTTPService. I need to extract subsets from the returned resultset, an array of objects, efficiently. Mutltiple calls through the cloud to the back-end won't do. It all has to happen client-side.Is there any collection class in Flex ActionScript that can sort an array of objects by one of the properties the objects all have in common, like the Array sortOn method, and then also provides a binary search method can extract a subset of objects from the sorted version of the array without visiting every item in the array and comparing?if I have an array of objects and each object had a zip property and a name property, I'd like to be able to extract all objects with zip = 10015 from the a copy of the original array where the copy has been sorted on zip.

View 2 Replies

Flex :: Efficiently Fill Data Gaps In An Sparse ArrayCollection?

Aug 10, 2010

I have an ArrayCollection of Objects. Each Object with three attributes:CustomerID, Income and DateMy goal is to chart this data for each customer (or a couple together) in a Income by Date LineChart display. Selection of customers is done with ArrayCollection filters.Data is fetched from an SQL database, however, each customer has some data points missing.f there was zero income on August 8, 2010 there will be no entry for that.Charting the ArrayCollection as is, is misleading because there is no indication of the missing data points.One way to solve this is to artificially add zero points for the missing dates for each customer. However, this would explode the data set (and impact performance).

View 1 Replies

ActionScript 3.0 :: Efficiently Creating/populating A 20x20 Cell Matrix

Dec 9, 2009

I have a 20x20 matrix set up in Excel that I'd like to recreate in Flash. Essentially the values are either 0 or a calculated formula of -Fo or 1+2(Fo).

My question is with a matrix of this size, is there an efficient way to create and populate it besides hard coding the address for each data cell? Can I make this using a loop?

I've attached a snippet of what the Excel sheet looks like. Notice the data trend.

View 10 Replies

Media Server :: Medium-load Chat Server Using Shared Objects Segfaults Every Few Hours?

Aug 25, 2009

Medium-load chat server using Shared Objects segfaults every few hours. Runtime size has been increased to 30MB (this saves it from crashing every 10 minutes). I have the core dump but don't understand what it means.

View 9 Replies

ActionScript 2.0 :: When Pages Load Content Will Be Read From ABC's Server Not XYZ's Server

May 25, 2009

I will go to URL... but when the pages load the content will be read from ABC's server not XYZ's server.The users will use the data on XYZ's website not realizing that the content is actually coming from another site.

View 2 Replies

Media Server :: FMS Admin Console Won't Load - Server Not Found

Jul 18, 2011

Randomly on Sunday night the FMS Admin Console which you can access via [URL] stopped working, as in it would not load. It times out and Firefox says 'Server Not Found' It was working fine on Sunday morning and has been doing for a year now, I rebooted the server and that did nothing. I have no idea why it will not load as the server runs fine and I can still stream and everything.

View 20 Replies

Media Server :: Flash Media Server Taking Forever To Load Large Files

Jan 12, 2011

We purchased FMIS and we are encoding large 15+ hour MP4 recordings using flash media encoder. When opening these large files for playback, which have not been opened recently  the player displays the loading indicator for up to 4 minutes! Once it has apparently been cached on the server it opens immediately from any browser even after clearing local browser cache. So a few questions for the experts

1. Why is it taking so long to load the file. Is it because the MP4 metadata is in the wrong format and the file is so huge? I read somewhere that Media Encoder records with incorrect MP4 metadata is that still the case?
 
2. Once its cached on the server, exactly how much of it is cached. Some of these files are larger than 500mb.

3. What fms settings do you suggest I change. FMIS is running on windows server R2 64 bit, but FMIS itself is 32 bit. We have not upgraded to the 64 bit version. We have 8GB of ram. Is it OK to set FMS cache to 3GB. And would that only have enough room for 3-4 large files, because we have hundreds of them.

View 1 Replies

ActionScript 2.0 :: SWF Load A XML On An Other Server

Sep 19, 2009

All sources availbale here URL...MY GOAL :from a flash(swf) on server A, I want to download an XML file on server B.MY PROBLEM : it doesn t work

1 - I use the Class URLLoader
2 - I set both these domains ok with Security.allowDomain() method
3 - I upload a "crossdomain.xml" (in folder and root server) file who allow crossdomain communication (adviced by Adobe)

View 1 Replies

Can't Load A Picture On Server

May 6, 2009

Can't understand why: loadMovie("pict/my_picture.jpg",movieClip); the path seems to be correct, but Flash can´t load the picture. It works locally, although, but not on the server.

View 1 Replies

ActionScript 3.0 :: Load Mp3 When Put On Server?

Aug 1, 2009

I have trying to play a mp3 file with the code below.

When i compile it, it works fine but when i put the swf in any php file and run on my server eg. [URL]
 
It does not plays the sound. s.

var audioPath:String = "audio/Baalim.mp3";  txtError.appendText("AUDIO PATH:"+audioPath);trace("AUDIO PATH:"+audioPath);
var snd:Sound = new Sound();snd.load(new URLRequest(audioPath));snd.addEventListener(IOErrorEvent.IO_ERROR,

[Code].....

View 5 Replies

ActionScript 3.0 :: RSS Reader Won't Load On Server?

Jul 24, 2009

I have an RSS reader that displays my blog feeds on my flash website. It works if I view the website remotely by hitting F12, but it doesn't work if I view it through the website on the server. Why is that? Is it an issue with the server? I also have a guestbook and contact forms on the website, and it takes at least 20 minutes before the guestbook updates with the new entry or I receive the email from the contact form.

Code:
blogspot_txt.htmlText = "<u><a href='http://run2savelives.blogspot.com' target='_blank'>View TheRun4Life Blogspot</a></u>";
var rssReq:URLRequest = new URLRequest("http://run2savelives.blogspot.com/feeds/posts/default?alt=rss");

[Code].....

View 9 Replies

Data Integration :: Can't Load XML From Server In IE

Sep 4, 2006

Have a flash, that loads XML from server. Flash uses it to built up a site menu. Both xml and flash reside on the same host. When I try to run server locally - everything works. But when I try it online, XML is loaded only in FireFox, but in IE it can't be loaded. Flash movie itself loaded normally (I can right-click on it and see standard menu). I put my host into Trusted sites in IE and set very low security/privacy. I don't have any firewalls or proxies. I also put my host and flash movie into Trusted source in Flash Settings Manager.

View 4 Replies

Media Server :: How To Load A .swf Into All Client

Nov 30, 2009

I have to load a .swf file in all connected clients by pushing a button from another client

View 23 Replies

Media Server :: How To Load Test

Jul 1, 2010

does anyone know how to test how many users can use a fms application simulationsly?? Are there any automated tools?

View 1 Replies

Xml :: Load XML From Outside Web Directory On The Local Server?

Jan 26, 2010

Is it possible for flash to access data from outside of the root directory of the server it resides.i.e.

Root directory = /var/www/httpdocs

SWF = /var/www/httpdocs/flash/file.swf

XML = /var/www/xml/file.xml

View 1 Replies

Php :: AIR - Load Local File To Web Server?

Oct 24, 2011

I try to upload file from local system to web server.My application is desktop application and I work with php server.Find below my code

In flex

var dropfiles:Array = evt.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
for each (var file:File in dropfiles){
var fileFormat:String = file.extension;
var fileUrl:String = file.url;

[code]....

With those code message "Error #2044: Unhandled IOErrorEvent:" appear on flex.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved