Incorporating Caching into a Web API using GitHub Copilot and Visual Studio 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

ความคิดเห็น • 9

  • @rbhis000
    @rbhis000 6 หลายเดือนก่อน

    Great getting started example. Thanks!

  • @zeetsoft-tech3155
    @zeetsoft-tech3155 ปีที่แล้ว

    Amazing

  • @SunilRathiOnline
    @SunilRathiOnline 11 หลายเดือนก่อน

    Just too good..

  • @systechadmin8368
    @systechadmin8368 ปีที่แล้ว

    Is there subscription plan for educational institute ?

  • @xfatih
    @xfatih ปีที่แล้ว

    10$ monthly price

  • @Ulfius1984
    @Ulfius1984 ปีที่แล้ว +2

    Is it thread-safe?

    • @JonGalloway
      @JonGalloway ปีที่แล้ว +4

      Great question! There are potential race conditions under high load where multiple threads could hit an empty cache and query the database. That's not a problem for this app and use case for a few reasons - with normal app load we'll very rarely get simultaneous queries for the same show, the db query is fast, and this API doesn't mutate data. Adding thread management has tradeoffs too - additional code complexity and more code that runs on every execution. In this case, almost certainly unnecessary.