فن المواقع الإلكترونية السريعة

فن المواقع الإلكترونية السريعة

The Art of Fast Websites

هل أنت مستعد لتعلم الحيل التي نستخدمها لجعل مواقع الويب الخاصة بنا سريعة للغاية، أسرع من أي مزود CDN مشهور حول العالم؟

عادةً ما يواجه موقع ووردبريس صعوبة في التحميل خلال ثانية واحدة. لكن المواقع التي تعمل بنظام Website World تستخدم تقنيات تخزين مؤقت متطورة لتوفير سرعات شبه فورية تتراوح بين 50 و200 مللي ثانية من جميع أنحاء العالم..

How Do We Achieve These Amazing Speeds?

It's really quite simple; we have a simple "publish" button, that will push websites changes around the world. This process pushes your pages and images as close as possible to where end users reside, wherever that is in the world. This may sound like an ordinary Content Delivery Service (CDN), but really it's quite different. A CDN only caches popular pages, and only for a short time. It then needs to go back to the origin server to load the latest version of the page (even if that page has not been changed in months, it cannot tell the difference).

What Is An "Origin Server"?

الخادم الأصلي هو الموقع الذي يتواجد فيه موقعك الإلكتروني. يعتقد البعض أن مواقعهم الإلكترونية موجودة "في السحابة" أو "على الإنترنت"، لكن في الحقيقة، هذا غير صحيح. ستُستضاف مواقعك الإلكترونية على خادم مُحدد، في مركز بيانات مُحدد، في مكان ما من العالم. هذا الموقع يُؤثر بشكل كبير على سرعتك. يستغرق تحميل صفحة من لندن إلى نيوزيلندا أو العكس حوالي 500 مللي ثانية في المتوسط لنقل البيانات حول العالم. إذا كان مُضيف الويب الخاص بك قادرًا على توزيع موقعك عبر شبكة توصيل المحتوى (CDN)، فسيُسرّع ذلك موقعك بالتأكيد، ولكن ليس بنفس سرعة النسخ المُكررة.

The hit rate on a CDN cache, is often less than 70%, meaning 3 out of 10 requests go back to the origin server. In fact, that statistic is misleading, because the typical wordpress website sets a session cookie, and thereafter, every page request goes back to the origin server. Only images and static resources are cached by the CDN.  

Why Are WordPress Websites Particularly Slow?

WordPress websites are quite amazing, because there are so many plugins to do all sorts of different things. WordPress has been designed to make it easy to add all sorts of features to your website, and mix and match the plugins. However, the websites generated by having lots of Wordpress Plugins actually slow down your website. Some plugins are worse than others. Likewise, you can add caching plugins like WP Rocket, and W3 Total Cache, that will speed up your website, but they will never deliver the speeds that the native Website World platform can deliver with static content pushed to edge nodes. This is especially so because most WordPress websites generate session cookies, when they are not needed. 

What Is A Session Cookie?

يمكن استخدام ملف تعريف ارتباط الجلسة لمراقبة جلسة الزائر، أو تتبع تنقلاته، أو إدارة سلة التسوق، أو تسجيل الدخول. يُفضّل عدم إنشاء ملفات تعريف ارتباط حتى يضيف المستخدم منتجًا إلى سلة التسوق أو يُسجّل دخوله. إذا كنت تستخدم ملفات تعريف ارتباط تتبع تابعة لجهات خارجية، فسيؤثر ذلك على سرعة خدمة التتبع، وليس على سرعتك. يقتصر القلق بشأن ملفات تعريف ارتباط الجلسة على كيفية قيام شبكات توصيل المحتوى (CDNs) افتراضيًا بتمرير الطلبات المتعلقة بملفات تعريف الارتباط إلى خوادمها الأصلية.

Other Speed Mechanisms

Website World also uses many other secret tricks to speed up it's websites. We have all the typical settings like http2 keep alive and automatic gzip compression, but check out some of these others 

  • We automatically combine and compress all CSS files used by a webpage, saving server hits / bandwidth
  • We use very efficient javascript libraries, and only load the features required by a web page
  • The size of our HTML files is far smaller than a typical website generated by most other content management systems. Far, far smaller than Wix or WordPress.
  • We cache most of the database used by each website, so that pages are generated from in memory data. This is the reason our webpages are faster than WordPress, even when loaded from the origin server. Not even the best WordPress caching plugin will beat our native caching logic. 
  • We use the very best server architecture, with low CPU competition. Our servers average 5% CPU usage on average, and have more than enough RAM to ensure we never swap out to disk. Most of our RAM is dedicated to caching, not to page generation. 

Sample Speeds 

Sample speeds from around the world, independently tested by Hetrix Tools. 

  • أوكلاند ~ 30-100 مللي ثانية
  • Sydney ~ 30-100ms
  • Singapore ~ 30-100ms
  • London ~ 30-100ms 
  • Frankfurt ~ 30-100ms 
  • San Francisco ~ 30-100ms
  • Toronto ~ 30-100ms
  • New York ~ 100-200ms
  • Dallas ~ 100-200ms
  • Mumbai ~ 130-200ms
  • Moscow ~ 130-250ms
  • Tokyo ~ 100-200ms

Speeds below 100ms are typically within the same city as our edge nodes. Speeds from 100ms to 200ms relate to expectations of speeds within the same continent. 

Ready to take advantage of our super fast websites? You can! Grab yourself a free trial today - or if you already have a website hosted elsewhere, اطلب منا نقله إلى نظام إدارة المحتوى الخاص بنا لك!

Posted: Monday 15 July 2019