iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
⏩

Speaking at the Performance Session of Next Generation Web Conference 2023

に公開

https://nextwebconf.connpass.com/event/300174/

https://togetter.com/li/2276574

I spoke at the Performance session. The video is expected to be released eventually, so please check it out later if you're interested. By the way, since I have a bad back and can't sit for long periods, they kindly set up a makeshift stand for me so I could stand.

Content

In the world of web application performance, there is an ever-increasing number of things to consider.

In the past, since we didn't do complex things on the frontend, backend speed was paramount, and slow access from overseas wasn't emphasized as much.

However, today, using CDNs to speed up access from overseas has become a standard practice. With the evolution of cloud services, technologies to improve backend speed have also increased. Instead, due to the bloat of the frontend, the focus has shifted to how fast JavaScript applications running in the browser can perform. Furthermore, speed has become directly linked to Google's SEO, making it a critical business metric and important even for non-engineers.

Given these circumstances, the other three members were more frontend-oriented. I interpreted my role as expanding the scope of the talk by focusing on my knowledge of networks and CDNs, and that's how I tried to contribute.

Web application acceleration changes its available methods based on new browser features or, conversely, feature removals. Therefore, how to leverage browser capabilities is a crucial perspective, and I personally track information on new browser features as much as possible daily. As a result, there were many learning points, such as which features people working on the frontend frontlines are focusing on and how they actually gather measurement data.

I spoke about the practical challenges that arise when trying to implement Early Hints. Its predecessor, HTTP Push, had an issue where it would send responses even without a browser cache; despite being a flagship feature, it has now been completely removed from the specs. Since Early Hints also has hurdles in actual usage, I believe we need to think about what the best practices should be.

https://twitter.com/catatsuy/status/1736020912502440247

As the event's theme involved discussing what the future might hold, I also talked about several future-related topics in addition to Early Hints, such as:

  • The emergence of image and video formats utilizing AI technology, which are light in terms of network load but might take longer to decode. If this happens, the importance of the decoding attribute on img tags may increase.
  • Although HTTP/2 priorities ended up being discarded, HTTP/3 priorities have been redefined with a simpler specification, so I look forward to their widespread adoption in the future.

Additionally, on the topic of how to perform numerical measurements, the subject of how ISUCON benchmarker scores are calculated came up, so I briefly explained the implementation of the benchmarkers I had developed in the past.

  • In the ISUCON 9 preliminaries, revenue was used as the score because I wanted to adopt metrics that were as close to actual service indicators as possible.
    • Since this increases the difficulty of creating scenarios, measurements are usually done by assigning a certain number of points per GET or POST request.
  • The private-isu benchmarker focused too much on browser behavior, which led to an excessive number of image requests. Since ISUCON is a competition, it is better to implement things in a way that makes the event more enjoyable rather than worrying too much about browser behavior.

I believe I also brought up topics like: "Since SSR uses CPU and is expensive, isn't it tough for everyone?", "Aren't there more companies doing SSR for SEO rather than performance?", and "Performance API values get rounded, so how are you using them as information?"

After talking for 90 minutes, I was exhausted when it finished, but I ended up having my own "extra time" discussions with various people afterward.

Final Thoughts

I really feel that offline conferences, where you can interact in person, are great. Lately, the hurdles for organizing offline events in the industry have been rising, so I hope enjoyable events continue in a way that doesn't place too much burden on the organizers.

I've talked about several things so far, but in reality, I think only a few companies are this far ahead, and the reality is that many companies leave their backends slow or their frontends outdated. When it comes to how to solve this, the conversation shifts from technology to how to build an organization that can leverage technology effectively. I believe this can be solved over time if you have three elements: "a leader with a deep understanding of technology," "someone who understands the right technology and can provide guidance," and "employees who can take ownership of their work." However, that discussion would mostly revolve around mindset and wouldn't be very interesting, so I'll leave it for another time.

Discussion