Can anyone please recommend any good Load Testing software?
I have a website which updates scores every minute via ajax calls and need a load testing software which supports ajax calls (javascript) too!
This is a pretty broad question that depends greatly on exactly what you want to test and how you define "good" software. Many people will say you can't load test AJAX based sites using HTTP-simulation tools. We do it every day, so I can tell you that isn't true. However, the difficulty of the task varies greatly depending on the testing software you choose and the complexity of the site and scenarios you are testing.
My recommendation is to pick a few tools within your price range and evaluate how well they work for your particular scenario. If they have good support, you should contact them with any difficulties. If they can't get you going in short order, move on to the next product.
(Disclaimer: I work for Web Performance - our Load Tester product handles most AJAX scenarios just fine - which may be why we're on the first google page for "ajax load testing").
Ajax is just an HTTP call, so you have many options.
I can recommend WebLOAD.
Works well with Ajax. The script is written in JavaScript, which is a plus.
Although I cant recommend an AJAX load testing utility I can however recommend an alternative to normal AJAX calls to me it sounds like what you need is APE (Ajax Push Engine).
So instead if your application spawn repeatedly contacting the server
Your App -> Do you have a message for me server?..
Server -> No..
repeat X 10 Ajax Calls until Server -> Yes!
What APE does it pushes the data/information directly to your users browser without
the application contacting the server. Think of it this way, the server "shouts" a message and your web apps then receive this message and interprets it. This concepts is known as long polling.
APE is pretty darn fast and not that difficult to implement.
Heres a link to the APE project - http://ape-project.org
Theres a few guys that have some excellent examples available on the Internet,
heres a link to an interesting one which uses APE to create an SMS gateway.
http://www.ifc0nfig.com/esenape-send-and-receive-sms-in-real-time-using-ape-jquery-php-and-libape_controller/
I hope this interests you.
Regards
Related
I want to put an information in a webpage recurrently by a cron task (or whatever else), each week, but not on my webpage !
For example : value of gold on a trading website, take it every Monday, is it possible ? (I don't want to do that but something similar, the principle is the same)
From your comment, I guess that you actually want to download data from a web page as a source.
You don't specify which language you are working in but I've personally had some success doing this in .NET using a WebClient.
There is more information about the WebClient here but I think to make better use of StackOverflow, you'd be better trying to tighten up your question to include more specifics.
I am looking to build an iOS app and website that work 'together'.
What the plan is for each:
On the iOS side, it will be pushing information to the server in the form of a post. The users will then be able to vote up and down on the posts as well; which also implies they will be able to see the other users information (in real time).
The website will be viewing this information in real time and using the posts. If a post gets enough down votes the server should tell the website and apps to remove it.
I have experience with SQL. Although SQL does not seem to be the appropriate server choice - for what I want to do - given my experience with it. (I could definitely be wrong.)
I would like to host the information myself, however have heard that Parse is good about holding information for iOS apps. I just don't know whether it gives you enough freedom to work with websites as well.
TL;DR: What kind of database/datastore should I use for a real time queries that allows for push notifications?
All suggestions are welcome. Thank you.
Try Using FireBase
firebase.google.com
Documentation
On the Stack Overflow site, we can see following updates asynchronously.
Reputation Changes
New question added in question list
New comment added, etc.
As per my understanding, it can be done in XMLHttpRequest (XHR) request asynchronously, maybe with the help of setInterval.
Confusions: In Firefox, no XHR request is coming and even then I can see the above changes asynchronously.
Which kind of implementation is this and how can this be done in ASP.NET MVC?
This impressive and beautiful stuff is asynchronous calls made from the client to the server using Ajax.
A very simple approach is to use jQuery Ajax to make an asynchronous call inside a setInterval to search for "updates" of a question (this is the question with ID 17779628. We can see on the URL =P). So, the call to the server can pass this ID and a TimeStamp (a date) of the last call made to the server. The server then brings updates that occurred from TimeStamp to DateTime.Now.
I am not sure about the real implementation of Stack Overflow, but I already did a lot of stuff just like this.
Another tip:
There is an improvement. ;)
Modern browsers contains implementations of WebSocket. Since sockets are "peer-to-peer" and not "client-server", modern browsers don't need the approach with setInterval. Instead, you can implement a WebSocket opening in JavaScript and then the server can send the updates actively in the moment that it happens (you can use design patterns that include events).
Take a look at CanIUse to see which browsers supports WebSocket.
EDIT
Anyway, I just opened the code for you. The Stack Overflow's JavaScript code uses a singleton design pattern for the JavaScript code. Just take a look at the StackExchange variable in your browser console. That is the heart of the JavaScript code here. As you can see, there is a whole API built upon this StackExchange variable. Now, search for StackExchange.realtime.init('sockets.ny.stackexchange.com:80');
Then, take a look at the implementation of StackExchange.realtime.init at your console. It seems that they support asynchronous updates with WebSocket. This is nice and modern, but only supported by new browser versions. If you need to maintain backward compatibility, you can support both WebSocket (for new) and an Ajax implementation (for old browsers).
I imagine they would be using something like SignalR or WebSocket. SignalR will take advantage of WebSocket when available and then fall back to a number of other techniques to achieve the same thing.
I answered a similar question recently:
How do I display real-time information to the user?
As Nathan Fisher said, you'll want to look into Websockets and SignalR.
With regards to you not seeing XHR requests in Firefox, try looking for Websockets instead. In Chrome, I can see a Websocket on every SO page I go to.
Notice that is is dealing with information regarding my inbox, my reputation and also while I was writing this answer Nathan Fisher made an edit to his post, so I can see that the page is dealing with that also (I saw "An edit has been made to this post").
I've been doing some programming off and on for my brother, who is a stock trader. I'm wondering if it is possible to receive a push notification when a site server adds a page. For example, the site smallcapfortunes.com frequently adds pages that are simple extensions off the main URL. For example, the site regularly adds pages under URLs such as /neca/, /stev/, etc.
Are there existing methods to execute this? Or is this something I need to write myself? Has anyone here written anything like that?
I know there are existing sites to track basic updates to a single page. In my research, though, I haven't found anything like this.
Please let me know if there are any other details I need to provide.
Generally you can only get a push notification if a specific website offers that service.
Some websites publish a structured (XML) site map. If the one you're interested in does that, you could pull that sitemap on a regular basis and look for differences.
you're most likely going to want to use http://scrapy.org/ to go through the site and find new /neca/ and /stev/ urls, etc, then just trigger the script every so often.
i have a website, its to exchange links, files... to say it quickly it's my 'version' of twitter+megaupload,
Well, users add links all the time and so on, but i would like user be able to syinch his bookmarks from the browser to the ones he has at his profile of mywebsite,
Where should i look into?
Basically i need to be able to:
- Acces bookmarks file (1)
- being able to send the urls to my service ( 2 )
- maybe adding the login feature (in the future)
I was google'ing about this for ages few weeks a go and i kind of give up, because i'm ok with PHP and JS, but with this plugin languages i'm very lost. So i decided posting here, wich always brings positive answers
(1) - > I don't even know where to start
(2) -> i was thinking to have a website.com/auto_import_no_confirm.php?url=[URL] and put it in a for each.
how many different languages and extension files do i have to work with? I really need any kind of tip with point (1)
feel like?
-edit-
Just found This -> https://developer.mozilla.org/En/Code_snippets/Bookmarks
wich really looks like i need, but where do i place this code?
thanks!
Might not be a bad question, but there are too many subtopics raised to answer that. (And there is too much tagspam as well. Break up your question into PHP- and Javascript-specific tasks, when you have devised the general application scheme.)
But to get started, download similar Firefox extensions (.xpi) and unzip them to inspect the general structure. You'll find examplary code for bookmark handling and invoking remote APIs pretty quickly. And basically you only need Javascript for the extension itself. (It sounds like your extension does not need much UI.)
And there are many tutorials on designing Firefox addons: http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/ or http://www.google.com/search?q=firefox+develop+an+xpi
The good news first, you won't need much more than javascript if you just want to access bookmarks and send them to a server, neither on firefox nor on chrome.
But still you'll have to make yourself familiar with the apis of the browsers and learn how to develop extensions.
However, both Mozilla and Google provide all necessary information on their developer sites.
For Chrome, this is a good place to start, you'll find the api for bookmark access here.
The Corresponding site for Firefox can be found here, with information on bookmark access here.