Using Buffer to schedule “Tweets”

If you’re a user of social media, you may have heard of the social media tool called Buffer. In case you haven’t, it’s basically a sharing and scheduling tool which “buffers” outbound tweets and then sends them  in the future. I use it for Twitter, but it can also be connected to Google+, FaceBook, LinkedIn and so on (if you have a premium account)…. For me the free one works just fine.

Buffer differs from other Twitter scheduling apps because you don’t have to manually schedule tweets, you set a timetable for when you want tweets to go out and Buffer automatically tweets at the predetermined times.

You can fill your buffer in a variety of ways:

  • Emailing tweets to a private email address
  • Via the web interface at https://bufferapp.com
  • From your smart phone
  • Through Firefox, Chrome or Safari browser plugins (not IE … yet).

This is great and I’ve noticed more activity and engagement from my followers since I used Buffer. Unfortunately, I couldn’t think of a way to populate multiple Twitter accounts without paying for the premium version….. until now.

 

Buffer screenshot
Buffer screenshot

As you can see from the screenshot above, I have access to three Twitter accounts. My own account @richardbishop, my company account @TrustIV and the @VivitWorldwide account. By logging into Twitter in three browsers, I can stay connected to each of them and use the different plugins to populate my Buffer.

In the screenshot above, I used Chrome, Chrome Canary and Firefox and installed the Buffer plugin in each of them. This allows me to paste Tweets between the browsers if I want the same message in multiple accounts or post to individual Twitter feeds if I want to. Each of my accounts has a different schedule and it is possible to share my non-personal Buffer account with the other users of the @TrustIV and @VivitWorldwide Twitter accounts.

The dangers of extrapolation

As a performance tester I’m often asked to predict the behaviour of a client application based on test results. This is often difficult and I was reminded of this when I saw this xkcd cartoon recently.

Extrapolation

Often I’m asked to predict how many users a website will handle based on test results. For example, I may run a test on a cut-down version of a production system, the test system may have 2 webservers and the larger-scale production system may have 5 webservers.

If our 2-server system can handle 200 users, why isn’t it safe to assume that the 5-server system will handle 500 users?

Test Environment
Test Environment

Using extrapolation to predict the scalability or performance of a system is rarely possible in performance testing. The diagram below illustrates some of the reasons why.

 

Production environment
Production environment

 

The “real” network is invariably more complex than the test environment, the network topology or application architecture may be different. As well as this the patterns of user behaviour may not be as predicted, meaning that performance tests were unrealistic.

A few key differences:

  • Network connection speeds:
    Some users are connecting via slower mobile networks, this may hold connections open longer and affect overall system performance. Mobile users may use a disproportionate number of connections due to the higher network latencies.
    Other, local users, may connect at faster “LAN” speeds. I once worked in an office where a network upgrade brought the Exchange mail servers down. Until the network upgrade, the mail servers had their traffic “nicely throttled” by a slow network. Once this bottleneck was removed the servers couldn’t handle the higher throughputs.
  • Network load balancing: ideally this should be the same in production and test environments. In my experience it rarely is!
  • Sources of load: In our example test environment, we may only simulate user load on the webserver and database server. But what about other load on these systems? In a world increasingly built on SOA principles, what else is communicating with your database servers, contributing to network traffic or accessing your shared storage?

You may feel that in this article, I’m arguing against performance testing. Far from it, performance testing is vital, I’m only highlighting some of the pitfalls. Testing will help you to find and fix problems before your “real users” do, this is exactly what you want.

As well as more robust testing you need to do the following:

  • System monitoring, check real against predicted performance.
  • User monitoring, check real against predicted behaviour.
  • Repeat tests once you have this new data.
  • Test early and test often. Repeat tests over and over again throughout the SDLC.
  • Test your application from “all angles”, consider the use of stubs, test harnesses or service virtualisation technology to supplement your performance test tool.