{"id":336107,"date":"2017-03-17T23:41:03","date_gmt":"2017-03-17T15:41:03","guid":{"rendered":"http:\/\/techcrunch.com\/?p=1465738"},"modified":"2017-03-17T23:41:03","modified_gmt":"2017-03-17T15:41:03","slug":"linkedin-open-sources-flashback-a-tool-for-mocking-internet-traffic","status":"publish","type":"post","link":"https:\/\/people.utm.my\/asmawisham\/linkedin-open-sources-flashback-a-tool-for-mocking-internet-traffic\/","title":{"rendered":"LinkedIn open sources Flashback, a tool for mocking internet traffic"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=738\" class=\"\"\/><\/p>\n<p><a target=\"_blank\" href=\"http:\/\/linkedin.co\">LinkedIn<\/a>, the social network for professionals that is now <a target=\"_blank\" href=\"https:\/\/techcrunch.com\/2016\/12\/08\/microsoft-officially-closes-its-26-2b-acquisition-of-linkedin\/\">owned by Microsoft<\/a>, is making\u00a0one of the tools that it has developed in-house for its own work open for use by others. The company today announced that it would be\u00a0<a target=\"_blank\" href=\"https:\/\/github.com\/linkedin\/flashback\">open sourcing\u00a0Flashback<\/a>, a tool for mocking internet traffic for developer tests, under a <a target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/BSD_licenses\">BSD two-clause license<\/a>.<\/p>\n<p>In a blog post, LinkedIn said that it had been using Flashback to test things like reliability, scalability, and speed on new code before deploying it more widely. You can see an example of how it works <a target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=6gPNrujpmn0\">here<\/a>.<\/p>\n<p>Flashback was based on <a target=\"_blank\" href=\"http:\/\/betamax.software\/\">Betamax<\/a> \u2014 not the old video standard, but a another tool developed to mock actions of web services and REST APIs in developer tests\u00a0by \u201cintercepting HTTP connections initiated by a web application, and then later replaying them.\u201d\u00a0(\u2018Betamax\u2019 because it was inspired by another tool, the <a target=\"_blank\" href=\"https:\/\/relishapp.com\/vcr\/vcr\/docs\">VCR library<\/a> for Ruby.)<\/p>\n<p>The key difference, write creators and LinkedIn engineers\u00a0<a target=\"_blank\" href=\"https:\/\/www.linkedin.com\/in\/shangshangfeng\">Shangshang Feng<\/a>,\u00a0<a target=\"_blank\" href=\"https:\/\/www.linkedin.com\/in\/benykang\">Yabin Kang<\/a>, and\u00a0<a target=\"_blank\" href=\"https:\/\/www.linkedin.com\/in\/danvinegrad\/\">Dan Vinegrad<\/a>\u00a0in a <a target=\"_blank\" href=\"https:\/\/engineering.linkedin.com\/blog\/2017\/03\/flashback-mocking-tool\">blog post<\/a>, is that Flashback can work in an isolated environment, whereas Betamax, like other proxies, requires internet connectivity to work.<\/p>\n<p>\u201cFlashback is designed to mock HTTP and HTTPS resources, like web services and <a target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Representational_state_transfer\">REST<\/a> APIs, for testing purposes. It records HTTP\/HTTPS requests and plays back a previously recorded HTTP transaction\u2014which we call a \u2018scene\u2019\u2014so that no external connection to the internet is required in order to complete testing,\u201d they write.<\/p>\n<p>The reason for building a tool\u00a0that didn\u2019t require a connection to the internet was because of problems they encountered when using Betamax. These\u00a0included the fact that LinkedIn\u2019s\u00a0test environment does not have internet access for security reasons; and the code had use cases that required authentication protocols like OAuth and OpenId, which required complex HTTP-based interactions that didn\u2019t work with Betamax replays.<\/p>\n<p>This is not the first time that LinkedIn has outsourced some of the code that it originally developed for proprietary purposes. For example,\u00a0in 2015, it also <a target=\"_blank\" href=\"https:\/\/techcrunch.com\/2015\/09\/04\/linkedin-open-sources-featurefu-a-toolkit-for-building-machine-learning-models\/\">outsourced FeatureFu<\/a>, a toolkit for building machine learning models.<\/p>\n<p>The reason that LinkedIn open sourced FeatureFu was because it was no longer seen as a \u201cbusiness differentiator\u201d for the company. That may have been the case here, too, but so was the fact that when LinkedIn <a target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=6gPNrujpmn0\">presented the tool publicly<\/a>, they saw requests\u00a0from the developer community to use it for their own projects.<\/p>\n<p>While LinkedIn is open sourcing Flashback, it\u2019s also going to continue to work on it to expand its functionality \u2014 which could also point to what LinkedIn itself may be working on down the road for its 465 million users.<\/p>\n<p>\u201cWe\u2019d like to see if we can support non-HTTP protocols, such as FTP or JDBC, in the future,\u201d they write, \u201cand maybe even give users the flexibility to inject their own customized protocol using the MITM proxy framework. We will continue improving the Flashback setup API to make it easier to support non-Java languages.\u201d<\/p>\n<p><small>Featured Image: <a target=\"_blank\" href=\"http:\/\/www.gettyimages.com\/search\/2\/image?artist=NurPhoto&#038;family=editorial\">NurPhoto<\/a>\/Getty Images<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"383\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=680\" class=\"attachment-large size-large wp-post-image\" alt=\"LinkedIn app on smartphone.\" srcset=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=680 680w, https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=150 150w, https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=300 300w, https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg?w=768 768w, https:\/\/tctechcrunch2011.files.wordpress.com\/2016\/08\/gettyimages-541253298.jpg 1024w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/>&nbsp;LinkedIn, the social network for professionals that is now owned by Microsoft, is making\u00a0one of the tools that it has developed in-house for its own work open for use by others. The company today announced that it would be\u00a0open sourcing\u00a0Flashback, a tool for mocking internet traffic for developer tests, under a BSD two-clause license.<br \/>\nIn a blog post, LinkedIn said that it had been using&#8230; <a href=\"https:\/\/techcrunch.com\/2017\/03\/17\/linkedin-open-sources-flashback-a-tool-for-mocking-internet-traffic\/?ncid=rss\">Read More<\/a><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:2mJPEYqXBVI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=2mJPEYqXBVI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:7Q72WNTAKBA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=7Q72WNTAKBA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:-BTjWOF_DHI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=21FHYCIVrJI:gkDgO_RViZo:-BTjWOF_DHI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=21FHYCIVrJI:gkDgO_RViZo:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=21FHYCIVrJI:gkDgO_RViZo:qj6IDK7rITs\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=qj6IDK7rITs\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/Techcrunch\/~4\/21FHYCIVrJI\" height=\"1\" width=\"1\" alt=\"\"\/> <\/p>\n","protected":false},"author":5817,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25],"tags":[59,66,26],"class_list":["post-336107","post","type-post","status-publish","format-standard","hentry","category-technology","tag-media","tag-techcrunch","tag-technology"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/336107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/users\/5817"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/comments?post=336107"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/336107\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/media?parent=336107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/categories?post=336107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/tags?post=336107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}