AuthorAdam Owen

Deploying HTTP/2 using CloudFlare – Initial Results

When looking through my Twitter feed earlier today, I noticed CloudFlare announced they’d rolled out HTTP/2 to all clients who use SSL/TLS connections.

I’ve been using CloudFlare on a few of my personal sites for a while now, with good results, and saw their blog post earlier in the year mentioning HTTP/2 – so today’s announcement was great to see!

We’d looked into HTTP/2 at the office the other week, but we’re using cPanel/WHM & Apache on our production server, and with EasyApache not yet supporting the latest Apache 2.4.17 (which includes the required mod_http2), we were left waiting patiently for the update to appear in EasyApache.

EasyApache version selector

Using CloudFlare’s HTTP/2 instead

But hey, CloudFlare just announced HTTP/2, so why wait?!

Since I still wanted to have have the live (non-HTTP/2) site as a comparison, I used WHM’s Transfer Tool to create an exact copy of the website on a dev server.

I was initially going to setup a sub-domain for testing, but realised CloudFlare doesn’t support CNAME pointing on their free plans, so I ended up using a spare domain we had in our Namecheap account.

After setting up the domain in CloudFlare and pointing the DNS records (which took less than a minute to propagate), I just needed to update the database (for a Magento site in this case) to reflect the new domain.

I also created a quick self-signed SSL certificate in WHM, then set the SSL feature in CloudFlare’s panel to ‘Full’. (side note, if you’re not already taking advantage of CloudFlare’s free SSLs, grab an account and try it out for yourself – you’ll never need to buy an SSL certificate again!).

To minimise CloudFlare’s CDN having too much of an impact on results, I disabled as many of CloudFlare’s caching features as I could.

CloudFlare Claire Chrome Extension

*checking HTTP/2 is working, using the CloudFlare Claire Chrome Extension

Ready to benchmark!

Results – Comparing HTTP/1 vs HTTP/2

So here are the results (after running each site through GTMetrix):

Website using HTTP 1.0

(standard HTTPS & HTTP 1.0 connection)

Website using HTTPS and HTTP/2 via CloudFlare

(HTTPS & HTTP/2 – using CloudFlare)

 

Supporting only a few parallel resource downloads, we can see that using HTTP 1.0 delays the loading of resources on our web server by just over 3 seconds.

By comparison, the dev site I setup gathers (almost) all resources in parallel via a single TCP connection – adding no more than a second to the load time.

 

I’d like to also note that the standard website is on our production server (latest spec, SSDs etc), whereas the HTTP/2 dev environment is on an older-spec development server. This should explain the difference in initial connection times for those wondering.

 

I’m interested to see how HTTP/2 unfolds over the next few weeks. If anyone uses New Relic’s Real User Monitoring or similar, I’d love to see a screenshot showing average load times for website visitors before and after HTTP/2 roll-out.

In the meantime, I’ll see if I can gather a few screenshots comparing real-user load times before and after.

Any comments welcome!

Fed up with poor savings rates and want a better deal?

Well, you have a few options.

So, you ask… what should I do with my money? Well, I think you have a few options. The one that’s right for you will depend on your circumstances, but I’ll try my best to cover them below.

1. Traditional savings accounts

Most of us have these, which are a compromise between accessibility, security, and interest. As a result, the interest rates of most savings accounts isn’t particularly high. Usually ranging from 1-4%.

Though interest rates here are relatively low whatever bank or building society you choose, it’s always worthwhile to compare deals using sites such as Martin Lewis’ Moneysaving Expert.

2. Long-term bond accounts

You basically agree to keep your money deposited for a certain period. Usually 1-5 years. Wellesley & Co are an example of a provider of bond accounts. Though I actually find the interest rates fairly disappointing when compared to some of the options I’ll mention further below.

3. Crowd-funding investment (aka. P2P lending)

FundingCircle.com is a good example of crowd-funding investment. You can also have a positive impact on UK small businesses – as your funding will go towards them.
With Funding Circle, the minimum amount to add to your account is £100, and the minimum to invest in each business is £20.

Funding Circle does extensive credit and background checks before accepting a business to be invested in.

Typically, you can expect interest rates of between 5-12% over the period of the investment, however since crowd-funding works as a bidding system, the exact rate will depend on how many people are prepared to invest in a specific business.

If you have a good spread between businesses, you shouldn’t be affected too much if one of the businesses defaults on the loan. If you’re getting worried or simple wish to get out early, simply sell your investments on their ‘loan parts’ marketplace.

4. ‘Managed’ investment accounts

One of my favourites in this category is Nutmeg, which kicked off its first year with outstanding success, achieving a ~20% return for investors on its riskiest portfolio over the course of 2013.

I’ve personally used Nutmeg since April 2014, and though I’ve had the usual ups and downs (being down about 5% at one point), I’ve seen peaks of 6-7% in the space of a month.

They have 10 different ‘portfolios’, with 1 being the least risky, and 10 having the most risk (but offering the greatest chance of returns).

I’m on one of their more riskier portfolios, with my funds primarily being invested in the FTSE 100, FTSE 200, and S&P 500. It’s in their best interests for them to generate you the best possible ROI, since they take 1% annually as a fee. This means they’re constantly tweaking your portfolio as the markets change.

Nutmeg investment graph

Nutmeg investment allocation chart

During the Scottish independence vote, they sold all UK ETF’s in preference of US equivalents which had been performing similarly.

Nutmeg’s fee structure is fairly simple, taking 1% on a monthly basis.

If you go for this option, you should be able to focus on long-term earnings rather than making a fast return.

5. ‘Execution-only’ investment accounts (investing in individual stocks & shares)

This is probably the option with the most associated risk of the five different ways of earning on your cash I’ve mentioned, but offers the greatest potential for return if you know what you’re doing.

For example, if you’ve been reliably tipped that a particular stock will perform well, and you feel confident enough that you’re willing to invest, this is the option for you.

You’ll be able to log in to an online account, deposit funds, and place an order for a stock of your choosing (listed on the LSE, NYSE etc).

There are many stockbrokers to choose from, though I use x-o.co.uk – mainly down to the fees which consist of a flat £5.95 per trade (buy/sell). Hargreaves Lansdown are another popular option, and though their fees are slightly higher, they have a nicer interface with real-time stock prices. Though their fees could work out to be a substantial percentage for smaller trades, they’re still fairly competitive.

 

Alternatively, you can trade offline over the counter at your local bank. HSBC charge around £12 I think, with others charging similar rates.

 

Ideally, a combination of all the above would be a nice spread to give a good return, but also cover any potential losses.

 

 

Disclaimer: Okay, so I should probably point out I’m not a financial adviser.

But, that said.. you really shouldn’t just sit on a pile of cash that isn’t doing anything. After all, each year your money is becoming worth less and less due to the growing rate of inflation.

cPanel To Replace Outdated X3 Theme with Paper Lantern

If you’ve got a web hosting account, you’ll probably be using cPanel to add domains, create email accounts and check on disk usage.

For as long as I can remember, the default cPanel theme has been X3, which, if you take a look at it today, looks incredibly outdated – both the UI design and the icons.

Though people swear by cPanel/WHM as the best and industry-standard web hosting control panel, I have to agree with others when they say it looks ugly.

So I was happy when I heard cPanel are planning to replace the outdated theme altogether with a newer, flat design theme called Paper Lantern. The new Paper Lantern cPanel theme is available on cPanel 11.46+, and will soon completely replace X3.

cPanel X3 theme

cPanel X3 theme

cPanel paper lantern theme

cPanel Paper Lantern theme

What are your thoughts on the new Paper Lantern theme? I’m still getting used to it, but I think it’s because I’ve been used to using X3 for so long!

Want to earn a higher interest rate on your savings? Take a look at Fruitful

Sick of banks giving poor interest rates? Savings rates and the banking system in general really is in a sad state right now. Considering you need to grow your savings by 1%/year just to stay ahead of inflation, you’ll be breaking even if you’re lucky.

Though there’s an alternative to greedy, corporate banks with overpaid executives.

I came across Fruitful recently, and wanted to share it with others. They aim to offer a better alternative to traditional high-street savings accounts by offering a fixed annual interest rate of 6% on any funds you deposit, and promise to keep their interest rate at least 5% above the base rate set by the Bank of England.

After seeing an article about it while browsing the web, I decided to sign up for Fruitful to see if it really is as good as the website says.

Their signup process for savers is currently working on a ‘request an invite’ basis, so I had to wait a few days to get my invite code and sign up properly.

After receiving my invite, the signup process was straightforward and took no more than 5 minutes. Following the signup, I got an email asking me to send across two forms of ID to prove who I was, but even that didn’t take long at all.

After logging in, I couldn’t believe how simple the interface was, with just three menu tabs; Funds, Deposit, and Withdraw. I had double-check I hadn’t missed any menus!

But then you realise, this is perfect. No complicated fees, no stress and hassle of having to navigate your way through complex menus.

The funds tab gives you an overview of any funds you’ve deposited, along with the interest you’ve earned. Interest payments are made on a monthly basis, so you have to wait a month to see any increase in your funds.

I decided I’d deposit some funds, which Fruitful makes incredibly easy to do. You simply enter how much you’d like to deposit (a minimum of £250), enter your card details, and the funds appear almost instantly in your Fruitful account.

Screen Shot 2015-01-20 at 20.47.11

Screen Shot 2015-01-20 at 20.47.24

If you’d rather make a BACS transfer, they also support this, though it can take a day or two for the funds to appear in your Fruitful account.

When it comes to withdrawing your money, that’s straightforward too. Simply enter your bank details and you’re free to withdraw your funds with no hidden fees.

Screen Shot 2015-01-21 at 23.45.59

So far, so good. It says I have 29 days until my first interest payment, but in the meantime I can say that this website almost makes finance fun, so well done guys!

© 2024 Adam's Blog

Theme by Anders NorénUp ↑