{"id":215,"date":"2013-10-21T10:47:28","date_gmt":"2013-10-21T10:47:28","guid":{"rendered":"http:\/\/loadfocus.com\/blog\/?p=215"},"modified":"2023-06-19T09:20:15","modified_gmt":"2023-06-19T09:20:15","slug":"measuring-latency-for-different-regions-of-the-world","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2013\/10\/measuring-latency-for-different-regions-of-the-world","title":{"rendered":"Measuring Latency for Different Regions of the World"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span><p class=\"lead\"><!-- pn-tldr --><\/p>\n<h2>Key takeaways<\/h2>\n<ul>\n<li>Latency varies enormously by region, so a single measurement point tells you very little.<\/li>\n<li>Measure from where your users are, then decide whether a CDN or an edge deployment is warranted.<\/li>\n<li>Compare regions over time; a one-off reading catches routing noise.<\/li>\n<\/ul>\n<p><!-- \/pn-tldr -->During the development of your web application you will encounter the need of finding out the <a href=\"https:\/\/loadfocus.com\/blog\/2013\/08\/what-is-latency-in-load-and-performance-testing\/\">latency<\/a> times for\u00a0different regions of the world.<\/p>\n<h3>Why should I care about this?<\/h3>\n<p>Imagine that a user is able to access your application from Europe in under 100 ms, but doing the same action from Asia it will have to wait 4 seconds for the same\u00a0URL to receive the response. The user experience for some of the regions could be very badly impacted by this.<br \/>\nThis may not be so important for web applications that are meant for a small geographical areas, but for the applications that should be easily accessible from different countries and continents this is quite important.<\/p>\n<h3>How can I measure the <a href=\"https:\/\/loadfocus.com\/blog\/2013\/08\/what-is-latency-in-load-and-performance-testing\/\">latency<\/a> for such use cases ?<\/h3>\n<p>The answer is simple, you just have to create a test case that hits the URLs that you want to measure and run them from different regions of the world. It is very simple and easy to do that from with<strong><a title=\"load testing\" href=\"https:\/\/loadfocus.com\"> Load Focus &#8211; Cloud Load and Performance JMeter testing service.<\/a><\/strong> All you need to do is to select the URL and the geographical region of the injector machine from within the service and your ready to go. It&#8217;s that easy. To create an Apache JMeter performance test you need to<a title=\"jmeter performance\" href=\"https:\/\/loadfocus.com\/blog\/2013\/07\/apache-jmeter-performance-test-introduction\/\"><strong> create a JMeter performance test script file<\/strong><\/a>.<\/p>\n<h3>How can I do that?<\/h3>\n<p>Is pretty much quite straight forward if you are using the <a title=\"performance service\" href=\"https:\/\/loadfocus.com\"><strong>LoadFocus service<\/strong><\/a>. Even if you do not have a cloud provider account we can provide you<br \/>\nfree of charge a couple of machines from different regions for running your test with some limitations. So all you have to do is create a General Test (the type of test that can be easily created directly on the LoadFocus web interface)\u00a0or use one of your existing Apache JMeter tests.<\/p>\n<h3>Could I use the same technique for load testing my application?<\/h3>\n<p>Yes, for sure you can use the same, the only issue would be that using the free of charge account would not give you more the 2 machines and 3 minutes for running your tests.<br \/>\nPlease contact in case you need more.<\/p>\n<h3>Could I use this for verifying the analytics features that I have set up on my web application?<\/h3>\n<p>The answer is the same, for sure you can as you have the possibility to simulate access from different regions of the world.<br \/>\nLet us know in case you what us to create a small demo for you.<!-- pn-faq --><\/p>\n<h2>Frequently Asked Questions<\/h2>\n<h3>Why measure latency from more than one place?<\/h3>\n<p>Because it varies enormously by region. A request served in under 100 ms in Europe can take many times that from Asia, and a single measurement point hides it entirely.<\/p>\n<h3>What do I do with the numbers?<\/h3>\n<p>Measure from where your users are, then decide whether a CDN or an edge deployment is justified. Both are real costs, so the decision should follow the data.<\/p>\n<h3>Is one reading enough?<\/h3>\n<p>No. Compare regions over time, because a single measurement can catch transient routing rather than the normal path.<\/p>\n<p><!-- \/pn-faq --><!-- pn-related-reading --><\/p>\n<h2>Related reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2013\/08\/how-many-threads-or-concurrent-users-can-i-run-in-parallel-with-apache-jmeter-from-my-machine\">How Many Concurrent Users Can JMeter Handle?<\/a><\/li>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2013\/11\/run-jmeter-distributed-test-in-the-cloud\">Run JMeter Distributed Test in the Cloud<\/a><\/li>\n<li><a href=\"https:\/\/loadfocus.com\/blog\/2015\/08\/top-10-performance-testing-tips-and-tricks\">Top 10 Performance Testing Tips and Tricks<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>Key takeaways Latency varies enormously by region, so a single measurement point tells you very little. Measure from where your users are, then decide whether a CDN or an edge deployment is warranted. Compare regions over time; a one-off reading catches routing noise. During the development of your web application you will encounter the need&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2013\/10\/measuring-latency-for-different-regions-of-the-world\" class=\"more-link\" title=\"Read Measuring Latency for Different Regions of the World\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3720,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[61,62],"class_list":["post-215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache-jmeter","category-load-testing","tag-latency-issues","tag-response-time-for-different-regions-of-the-world"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":1,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":2612,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/215\/revisions\/2612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/3720"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}