PHPカンファレンス 2023 に行ってきました

今日は3連休の中日でしたが、蒲田で行われたPHPカンファレンスに行ってきました!

実は…。

ここ最近、PHPしか書いてない!!!

ぐらいPHPにどっぷりつかっている私です。(`・ω・´)

(プルリクはJavaとかjsとか見ますが)

何をやってるかというと、先日書いたように、弊社のお客様が3000社を突破したんですよ!!!

ありがたいことなんですが、エンジニアの方ならよくわかっていただけると思うんですが、お客様が増えると…

・トラフィックが増える

・データが増える

・想定されていなかった使い方をされるお客様もいっぱい出てくる

という技術面の問題に直面しています。(´ω`)

そして、めちゃくちゃソフトウェアアップデートをしてるんですよ。機能がめっちゃ増えてます。

複雑性というのが増えてます。

少ない人数で素早いリリース、素早い不具合対応、スケールの問題に対処するかのヒントを得るために、こういう機会は私にとって重要です。(`・ω・´)

 

昼過ぎから行きましたので、下記のセッションから見ました。

下記には私的なメモだけ書いておきます。

後日スライドなどが公開されると思います。(内容が間違ってたら申し訳ないです。)

 

Webアプリケーションのパフォーマンス・チューニングの勘所

https://fortee.jp/phpcon-2023/proposal/9dd2a5e3-5a3d-4d3b-b39f-0fb3e17bbd15

曽根 壮大さんという方のお話ですが、この方の話は以前も聞いたことがあって、とてもためになりました。

・Cloud watch log insightsが便利

・サーバーの状態を調べるのに、最初にOSのメトリクスを見るのがよい(CPU使用率とか)
病気の検査で体重を測るのと同じようなもの。

・デッドロックが頻発すると、CPU使用率が上がる

・デッドロックを完全になくすのは難しい。逆にタイムアウトを短くして、アプリでリトライするのがよいと思う。

・キャッシュは使わなくて済むなら使わないほうが良い
壊れたときに不具合対応が難しいから

・キャッシュは必ず一次データから取り出すべし

☆目の前のコードを直すことができるのは自分たちだけ という言葉が印象的でした。☆

 

スケーラブルサービス――疎結合に成長するシステムに不可欠な要素

https://fortee.jp/phpcon-2023/proposal/d81f49cf-009c-4953-af24-1582a827edef

成瀬 允宣さんという方のお話で、3月にもPHPerKaigiでこの方のセッションを聞いてとてもためになったので聞きました。

・サービスをスケールさせるのは、ソフトウェアをメッセージ駆動にするのがよい

・メッセージキューはありものを使ったほうがよい。Kafkaの名前が挙がってました。

・ただ、メッセージキューは使うのが難しい。順序保証やトランザクションの話が上がってました。

・イベントソーシングにする。ステートソーシングとは違う概念。
成瀬さんが、イベントソーシングにすると、よりオブジェクトの状態にあう、という話をされていたのが印象的でした。
インピーダンスミスマッチを解決できるのではないかという話でした。

はは~。インピーダンスミスマッチという言葉を私はこの日初めて知ったんですが、なるほど!と腑に落ちましたね。
インピーダンスミスマッチとはDBの中身は、ある日ある時の状態(ステート)なんだけど、コード上のオブジェクトは「なう」な状態を扱っていることが多いのでミスマッチになっていくという話みたいです。

イベントの方がオブジェクトのプロパティなどに近いので、このインピーダンスミスマッチを解決できるという話。

・イベントを記録しておく。そうすると、イベントのリプレイが可能
なんとDBを消すことさえできる。イベントをリプレイすれば戻せるわけなので!

・イベントの設計図を作る

・LaravelでもKafka使えるよ!しかし、Javaとかで使ったほうがいいです…。

実は今、私イベント駆動でちょうどイベントの設計を作ったりしているところなのでジャストにためになりました!!(`・∀・)ノ

成瀬さんに後でその感動を伝えたところ、前にお会いしたことを覚えてくれて
「あ、後藤さんですよね?」
って名前を覚えて頂いていたので感動しました!°(´ฅωฅ`)°。 成瀬さんは芸能人みたいな方ですね!( ˊᵕˋ )

安全にPHPでWebアプリ開発するために実践していること

篠田 北斗さんという方のお話でした。

いかにうまくPHPのソフトウェアを開発・メンテナンス・運用していくかということで実践的なお話ばかりでためになりました。

・readonly 使ってこ。(個人的な話ですが、使うの忘れちゃうんで!)

・MTTRの短縮化を目指す

・エラートラッキングツールとチャットツールを連携させる。ここではSentryの名前が挙がってました。
オオカミ少年にならないように毅然とした態度をとる。

→この話、どうしたらオオカミ少年にならないのか、毅然とした態度とは何なのか、懇親会で篠田さんに直接聞いちゃいました!
ウチでも、同じような構成(Sentry+Slack)でオオカミ少年化しているところが結構あるので…。(´ω`)
「Sentryでignoreするエラーを選べるのでそれでミュートすべし」
「Slackでエラーが来たらちゃんとつぶしていく」
おおー。教えて頂いてありがとうございました!┌o ペコッ

・ノートラブルシステムへの道 というスライドがよいので見る。
→見ました。https://speakerdeck.com/yamaz/notoraburusisutemuhenodao?slide=25
確かにいい話です。「機能追加がなくても、売れればシステムは傷み始める」というのがまさしくその通りだなと。


その後は、ちょっと休憩してて、LTを一通り見ました。

PHPInsightsで技術的負債の可視化始めました

 

・Gitで直近1年間のファイル別変更回数を出す。その後、循環的複雑度を出す。
変更回数 × 循環的複雑度 = ソフトウェア保守のコスト

うわああああ 確かに!!

入社半年を迎える新米エンジニアがカンファレンス・勉強会から得た学び〜半年後の自分に伝えたいこと〜

・知らないことは調べようがない

単純だけど、真実だな!って思います。

ネットだけで調べものしていると、「知らないことに遭遇できない」ということがよくあると思います。


なんと、今回900人ぐらいの人が参加したそうです!

大盛況ですね。

各地でPHP Conferenceが行われるらしいです。

その後、懇親会で多くの方とお話させて頂きました。

どんなプログラムを書いているかとか、今注目している技術とか、組織がかかえる問題とか、その方のキャリアとか、よもやまテックなことだけじゃないお話ができて楽しかった~ o(>▽<)o

Github Copilot導入しようか迷ってたんですが、結構導入しているとか、便利だよって話をお聞きして、ウチでも使って行こうと思いました!

皆さま有難うございました!!!

PHPカンファレンス

86 thoughts on PHPカンファレンス 2023 に行ってきました

  1. Wonderful web site Lots of useful info here Im sending it to a few friends ans additionally sharing in delicious And obviously thanks to your effort

  2. Aw, this was an exceptionally nice post. Finding the time and actual effort to create
    a really good article… but what can I say… I hesitate a whole lot and never manage to get anything done.

  3. Hi my family member! I wish to say that this article is awesome, great written and
    include approximately all important infos. I’d like to
    peer more posts like this .

  4. Excellent post. I used to be checking constantly this blog and
    I am inspired! Very useful information specifically the last phase 🙂 I deal with such info much.
    I used to be looking for this certain info for a long time.
    Thank you and good luck.

  5. I’m not sure where you are getting your info, but great topic.
    I needs to spend some time learning more or understanding
    more. Thanks for magnificent info I was looking for this
    information for my mission.

  6. Wonderful website. A lot of useful information here. I’m sending it to a few friends ans additionally sharing in delicious.

    And of course, thank you on your sweat!

  7. Every weekend i used to pay a visit this website, as i want enjoyment, since
    this this web page conations actually good funny information too.

  8. Thank you for the auspicious writeup. It in fact was a amusement account
    it. Look advanced to far added agreeable from you!
    By the way, how could we communicate?

  9. I have to thank you for the efforts you’ve put in writing this site.
    I really hope to check out the same high-grade content by you in the future as well.
    In truth, your creative writing abilities has encouraged me to get my own site now
    😉

  10. Hello! This is my 1st comment here so I just
    wanted to give a quick shout out and tell you I really enjoy reading
    your articles. Can you suggest any other blogs/websites/forums that go over the same topics?
    Thanks a ton!

  11. Excellent beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog
    site? The account aided me a acceptable deal. I had been a little
    bit acquainted of this your broadcast provided bright clear concept

  12. It’s genuinely very complex in this busy life to listen news on TV, therefore I simply use the web for that purpose, and take the hottest news.

  13. Have you ever considered creating an e-book or guest authoring on other blogs?
    I have a blog based on the same subjects you discuss and would really like to have you share some stories/information. I know my viewers
    would value your work. If you’re even remotely interested,
    feel free to shoot me an e-mail.

  14. I was suggested this website by my cousin. I
    am not sure whether this post is written by him as nobody else know
    such detailed about my problem. You are wonderful!
    Thanks!

  15. Howdy, i read your blog occasionally and i own a similar one and i
    was just wondering if you get a lot of spam remarks?
    If so how do you protect against it, any plugin or anything you
    can advise? I get so much lately it’s driving me mad so any help is very much appreciated.

  16. Hey I know this is off topic but I was wondering if you knew of any
    widgets I could add to my blog that automatically tweet my newest twitter updates.

    I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I
    look forward to your new updates.

  17. I simply could not leave your website before suggesting that I actually loved the standard info an individual supply to your guests?
    Is going to be again frequently to inspect new
    posts

  18. Oh my goodness! Amazing article dude! Many thanks, However I am having difficulties with your RSS.
    I don’t know why I can’t subscribe to it. Is there anybody else
    getting the same RSS issues? Anyone who knows the solution can you kindly respond?

    Thanks!!

  19. Hey are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and create my
    own. Do you need any coding knowledge to make your own blog?
    Any help would be greatly appreciated!

  20. Wow, superb blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your website is fantastic, let alone the content!

  21. Hi there would you mind letting me know which hosting company you’re working with?
    I’ve loaded your blog in 3 completely different browsers and I
    must say this blog loads a lot faster then most. Can you suggest a good web hosting provider at a reasonable price?
    Thank you, I appreciate it!

  22. I have been exploring for a bit for any high
    quality articles or blog posts in this sort of space .
    Exploring in Yahoo I at last stumbled upon this site.
    Studying this information So i’m glad to express that I’ve a very good uncanny feeling I discovered exactly what I
    needed. I most indisputably will make certain to don?t overlook this web
    site and provides it a look regularly.

  23. I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out
    a designer to create your theme? Great work!

  24. Definitely believe that which you said. Your favorite reason seemed to be on the net
    the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that
    they just don’t know about. You managed to hit
    the nail upon the top as well as defined out the whole thing without having
    side effect , people can take a signal. Will probably be back to get more.
    Thanks

  25. I will right away seize your rss as I can’t find your
    email subscription hyperlink or e-newsletter service.
    Do you’ve any? Please permit me realize in order that I may just
    subscribe. Thanks.

  26. Hello it’s me, I am also visiting this web
    page on a regular basis, this web site is really fastidious and the users
    are really sharing nice thoughts.

  27. Hey there! This is my first visit to your blog! We are a group of volunteers and
    starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a outstanding job!

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です