Source Code: Your daily look at what matters in tech.

enterpriseenterpriseauthorTom KrazitNoneAre you keeping up with the latest cloud developments? Get Tom Krazit and Joe Williams' newsletter every Monday and Thursday.d3d5b92349
×

Get access to Protocol

Your information will be used in accordance with our Privacy Policy

I’m already a subscriber
Protocol | Enterprise

The great decoupling: Why web developers are looking at the edge

Web development hasn't changed a lot in 10 years, but modern browsers and APIs are opening the door for a new, decentralized approach known as Jamstack.

Young woman jumping over green cliffs against white background

Young woman jumping over green cliffs

Image: Getty Creative

Software developers upended app design by tearing up their code and sprinkling it around the web. Now the same trend is hitting web design.

An emerging philosophy known as Jamstack offers developers the prospect of building faster websites served from edge-computing networks that access custom content and features through APIs, reducing their reliance on distant servers. It's somewhat similar to a trend in enterprise app development called microservices, in which big, "monolithic" blocks of code are broken down into lots of smaller pieces.

Jamstack backers like Netlify CEO Matt Biilmann think that by decoupling the front end and back end of the website, web developers will see increased performance and flexibility from allowing browsers and content-delivery networks to do more of the heavy lifting required to build a modern site. It could also allow them to more quickly and safely update sites.

"If we take this architectural constraint of the decoupling and say that you have to work within that architecture, then we could make the workflow for teams of web developers just incredibly straightforward, and give them huge benefits in terms of time-to-market and execution speed and iteration speed over traditional approaches," Biilmann told Protocol.

Others are more skeptical about the real-world benefits of a concept that seems to have its greatest traction among the developers who are always searching for the next shiny, new thing.

"I think that a decoupled approach is great, just kind of like compressing your images using PNG or JPEG can be great, because it's something in the toolbox that you can use as part of solving a customer experience," said Matt Mullenweg, founder and CEO of Automattic, the company behind one of the most popular site-building tools ever in WordPress. "But it can also be a solution in search of a problem."

Still, these ideas are part of a general trend toward edge computing, as well as the more basic idea that systems that allow frequent changes to web applications permit developers to add new features very quickly.

"What it reminds me of [is] right at the beginning of the internet becoming interactive," said John Graham-Cumming, chief technology officer for Cloudflare. "It is giving you that experience of just the freedom to update something very, very rapidly as a developer with a lot more safety and safeguards than that 'edit the PHP or the Perl on the server' style."

More than the sum of its parts?

The three legs of the Jamstack stool — JavaScript, APIs and markup languages — are some of the most widely-used technologies in modern software development.

JavaScript has been the most popular programming language used by respondents to Stack Overflow's annual developer survey for eight years in a row, according to the 2020 version. All modern browsers come with dedicated JavaScript "engines" for rendering web pages on the fly, compared to the early days of the internet when all the content had to be loaded from a server.

APIs are the connective tissue of internet-connected software, allowing software applications to exchange details with each other about their plans and purpose. And markup languages provide a method for modifying web pages without altering the actual text and image content, such as the HTML language that renders the end of this sentence in italics.

Early Jamstack backers like Biilmann realized that by combining these technologies with version-control software like GitHub, websites could assemble pages for visitors without having to complete the round trip to a database at a far-away cloud provider or on-premises data center. Instead, developers can use edge networks like Fastly and Akamai — which are already serving site content like images from endpoints on those networks much closer to the end user — to cache pre-built pages and render them in the browser with JavaScript, making API calls for anything else they need.

"If you have a large content-based website, the traditional approach would be that every request to that website would hit a web server that talks to a database and builds that page and sends it back," Biilmann said. Jamstack allows developers to incorporate modern ideas like continuous integration/continuous delivery (CI/CD) systems that assemble components very quickly from content-delivery servers, all coordinated by APIs.

"As long as we can do that, we'll essentially solve all scalability and security and performance problems," Biilmann said. "You can't get faster than serving a pre-built piece of content directly out of a CDN."

Business teams are constantly asking their developers to add new tools on sites to unlock business insights, and Jamstack allows those development teams to introduce new features without bringing performance to a crawl, said Aly Cabral, director of product for Cloudflare Workers.

"In that world where you get access to compute directly where that static site content is, then you're not paying any performance tax by adding a lot of value to your website," she said.

A balancing act

Mullenweg isn't sure that Jamstack allows its users to completely avoid taxes.

To be sure, as CEO of a company and developer of an open-source project that currently runs 40% of all the websites in the world, Mullenweg is not a neutral observer when it comes to emerging web technologies. But he sees some irony in vendors like Netlify and Cloudflare extolling the virtues of decentralization and decoupling just as long as you run your website on their platforms, using their technology, for a fee.

"To the extent that any point of the stack is not open source, you are trading off control and autonomy," he told Protocol. He's all for the general ideas behind Jamstack — "Decentralization is my life's work," he said — but argued last year that you can get the same performance benefits along with better security and reduced costs by running open-source WordPress on a CDN like Fastly or Cloudflare.

And depending on how you look at the world, the fact that Jamstack allows developers to implement services from a variety of providers is either a great idea or a terrible idea.

Jamstack proponents want to incorporate website components from a number of different companies that are laser-focused on a particular capability, such as Stripe's credit-card processing services. This decoupled approach also makes it easier to implement concepts like serverless computing on the back end of a site, freeing developers from having to know anything about the hardware running their sites.

But Mullenweg sees echoes of the "widget" era of web development more than a decade ago, when lots of companies pitched website owners on implementing their social-media sharing buttons for social media networks, or third-party commenting systems. Some of those companies, like Max Levchin's Slide and Disqus, raised lots of money only to fall out of favor with site owners that wanted simpler solutions.

"As you get into more advanced functionality, [the] Jamstack approach can become quite complex," he said.

'Peak centralization'

Still, the internet is so central to all our lives that consumer expectations have changed when it comes to site performance and functionality, which only guarantees more complexity. And there are signs that after a period of intense centralization in computing with the rise of the cloud, businesses are looking for a different approach.

"We are at peak centralization right now," said Microsoft CEO Satya Nadella in April. "As computing becomes embedded everywhere in our world, transforming how we interact with people, places, and things, and as the physical and digital worlds converge, we will require more sovereignty and more decentralized control."

There are many factors driving the push for decentralization, but two of the biggest are easy to understand.

Applications delivering data in real time — a rapidly-growing category — will struggle with the latency caused by a more tightly coupled, traditional approach. And looming data localization laws under consideration around the world could force decoupled application designs that can work with multiple back-end systems in the same countries as their end users.

"I think we're going to see people adopt Jamstack, especially in line with these sort of edge technologies or easy deployment methods, pretty rapidly," said Graham-Cumming. "I think this is going to become a mainstream way of doing things because it is such a nice experience as a developer, and in general, developer experience wins."

Protocol | Workplace

Google and Facebook will require vaccines at the office

Want to go back to the office? You'll need to get your shots first if you work at these companies.

Vaccine mandates are becoming more commonplace.

Photo: Bloomberg/Getty Images

Google and Facebook will both require U.S. employees to get vaccinated before coming into the office, the two tech giants revealed Wednesday.

Vaccine mandates have been growing in popularity, but it took weeks of rising COVID-19 case counts to get Facebook and Google to require the shots.

Keep Reading Show less
Allison Levitsky
Allison Levitsky is a reporter at Protocol covering workplace issues in tech. She previously covered big tech companies and the tech workforce for the Silicon Valley Business Journal. Allison grew up in the Bay Area and graduated from UC Berkeley.

Over the last year, financial institutions have experienced unprecedented demand from their customers for exposure to cryptocurrency, and we've seen an inflow of institutional dollars driving bitcoin and other cryptocurrencies to record prices. Some banks have already launched cryptocurrency programs, but many more are evaluating the market.

That's why we've created the Crypto Maturity Model: an iterative roadmap for cryptocurrency product rollout, enabling financial institutions to evaluate market opportunities while addressing compliance requirements.

Keep Reading Show less
Caitlin Barnett, Chainanalysis
Caitlin’s legal and compliance experience encompasses both cryptocurrency and traditional finance. As Director of Regulation and Compliance at Chainalysis, she helps leading financial institutions strategize and build compliance programs in order to adopt cryptocurrencies and offer new products to their customers. In addition, Caitlin helps facilitate dialogue with regulators and the industry on key policy issues within the cryptocurrency industry.
Power

Zuckerberg to investors: This metaverse thing will be expensive

Facebook's CEO told investors Wednesday that the metaverse will require "very significant investment" for years to come.

Mark Zuckerberg, chief executive officer and founder of Facebook Inc., reacts during the Silicon Slopes Tech Summit in Salt Lake City, Utah.
Photo: George Frey/Bloomberg

Zuckerberg has been on a one-man tour to sing the virtues of the metaverse, which continued with his appearance on the company's Q2 earnings call Wednesday. Outlining the company's key priorities for the next few years to come, he told investors and analysts that "the metaverse is going to be the next chapter for us as a company."

  • Writing that chapter will take a lot of ink. "It is going to require very significant investment over many years," Zuckerberg warned.
  • Some of these expenses will be due to new hires. Earlier this week, Facebook announced the formation of a new metaverse product group headed by Vishal Shah, Instagram's current VP of product. That new group will hire hundreds of additional staffers in the coming months.
  • And then there's the hardware. Facebook has invested billions into AR and VR, and the team behind those efforts is reportedly already close to 10,000-people strong.
  • But don't expect any hard numbers anytime soon. "We're investing billions of dollars annually" into AR/VR, said CFO David Wehner. Analysts wanted to hear some more specifics, but Wehner demurred.
  • Those investments will ultimately be worth it, according to Zuckerberg. "This is going to create a lot of value for a lot of companies up and down the stack."
  • However, the business model for the metaverse is still a bit fuzzy. "Ads [...] will probably be a meaningful part of the metaverse," Zuckerberg said, while also musing that people may spend money on avatars and other digital goods. "Over the long term, I think that there's going to be a very big digital economy," he said.
  • Don't expect hardware profits to be a big part of it, though. "Our mission is around serving as many people as possible," Zuckerberg said. "We want to make everything we do as affordable as possible."

Analysts on the call seemed to be a little unhappy about the lack of details, and investors sent Facebook's share price down 4% in after-hours trading. However, this hasn't been the first time that Zuckerberg outlined a massive initiative seemingly on a whim, only to be proven right later.

Keep Reading Show less
Janko Roettgers

Janko Roettgers (@jank0) is a senior reporter at Protocol, reporting on the shifting power dynamics between tech, media, and entertainment, including the impact of new technologies. Previously, Janko was Variety's first-ever technology writer in San Francisco, where he covered big tech and emerging technologies. He has reported for Gigaom, Frankfurter Rundschau, Berliner Zeitung, and ORF, among others. He has written three books on consumer cord-cutting and online music and co-edited an anthology on internet subcultures. He lives with his family in Oakland.

Protocol | China

China’s era of Big Tech Overwork has ended

Tech companies fear public outcry as much as they do regulatory crackdowns.

Chinese tech workers are fed up. Companies fear political and publish backlashes.

Photo: Susan Fisher Plotner/Getty Images

Two years after Chinese tech workers started a decentralized online protest against grueling overtime work culture, and one year after the plight of delivery workers came under the national spotlight, a chorus of Chinese tech giants have finally made high-profile moves to end the grueling work schedules that many believe have fueled the country's spectacular tech boom — and that many others have criticized as exploitative and cruel.

Over the past two months, at least four Chinese tech giants have announced plans to cancel mandatory overtime; some of the changes are companywide, and others are specific to business units. ByteDance, Kuaishou and Meituan's group-buying platform announced the end of a policy called "Big/Small Week," where a six-day workweek is followed by a more moderate schedule. In early June, a game studio owned by Tencent rolled out a policy that mandated employees punch out at 6 p.m. every Wednesday and take the weekends off.

Keep Reading Show less
Shen Lu

Shen Lu is a reporter with Protocol | China. She has spent six years covering China from inside and outside its borders. Previously, she was a fellow at Asia Society's ChinaFile and a Beijing-based producer for CNN. Her writing has appeared in Foreign Policy, The New York Times and POLITICO, among other publications. Shen Lu is a founding member of Chinese Storytellers, a community serving and elevating Chinese professionals in the global media industry.

Power

Brownsville, we have a problem

The money and will of Elon Musk are reshaping a tiny Texas city. Its residents are divided on his vision for SpaceX, but their opinion may not matter at all.

When Musk chose Cameron County, he changed its future irrevocably.

Photo: Verónica G. Cárdenas for Protocol

In Boca Chica, Texas, the coastal prairie stretches to the horizon on either side of the Gulf of Mexico, an endless sandbar topped with floating greenery, wheeling gulls and whipping gusts of wind.

Far above the sea on a foggy March day, the camera feed on the Starship jerked and then froze on an image of orange flames shooting into the gray. From the ground below, onlookers strained to see through the opaque sky. After a moment of quiet, jagged edges of steel started to rain from the clouds, battering the ground near the oceanside launch pad, ripping through the dunes, sinking deep into the sand and flats.

Keep Reading Show less
Anna Kramer

Anna Kramer is a reporter at Protocol (Twitter: @ anna_c_kramer, email: akramer@protocol.com), where she writes about labor and workplace issues. Prior to joining the team, she covered tech and small business for the San Francisco Chronicle and privacy for Bloomberg Law. She is a recent graduate of Brown University, where she studied International Relations and Arabic and wrote her senior thesis about surveillance tools and technological development in the Middle East.

Latest Stories