From 25957eb36b897716cd29ce41d4d76715409c660c Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 24 Sep 2023 00:04:02 +0700 Subject: [PATCH] feat: more blogs --- docs/2023-07-30-cache-shenanigan.html | 51 ++++++++-------- docs/2023-09-23-bloguru.html | 84 +++++++++++++++++++++++++++ docs/index.html | 6 ++ posts/2023-09-23-bloguru.md | 39 +++++++++++++ posts/index.md | 4 ++ 5 files changed, 159 insertions(+), 25 deletions(-) create mode 100644 docs/2023-09-23-bloguru.html create mode 100644 posts/2023-09-23-bloguru.md diff --git a/docs/2023-07-30-cache-shenanigan.html b/docs/2023-07-30-cache-shenanigan.html index 2dbcfed..2ff87ac 100644 --- a/docs/2023-07-30-cache-shenanigan.html +++ b/docs/2023-07-30-cache-shenanigan.html @@ -47,33 +47,34 @@ re-write to cache -
sequenceDiagram
-    participant other
-    participant service
-    participant cache
-    participant db
+    
+
sequenceDiagram
+    participant other
+    participant service
+    participant cache
+    participant db
 
-    other ->> service: get data
-    activate service
-    service ->> cache: get data
-    alt exist in cache
-        service -->> other: return data
-    else not exist in cache
-        service ->> db: get data
-        alt exist data in db
-            service -->> other: return data
-        else not exist data in db
-            service -->> other: return error not found
-        end
-    end
-    deactivate service
+    other ->> service: get data
+    activate service
+    service ->> cache: get data
+    alt exist in cache
+        service -->> other: return data
+    else not exist in cache
+        service ->> db: get data
+        alt exist data in db
+            service -->> other: return data
+        else not exist data in db
+            service -->> other: return error not found
+        end
+    end
+    deactivate service
 
-    other ->> service: set data
-    activate service
-    service ->> db: set data
-    service ->> cache: set data
-    deactivate service
-
+ other ->> service: set data + activate service + service ->> db: set data + service ->> cache: set data + deactivate service
+

It's good for general cases, for example with CRUD action.

The bad things happen when cache and database are not consistent. For diff --git a/docs/2023-09-23-bloguru.html b/docs/2023-09-23-bloguru.html new file mode 100644 index 0000000..4a66317 --- /dev/null +++ b/docs/2023-09-23-bloguru.html @@ -0,0 +1,84 @@ + + + + + + + haunt98 posts + + + +

+ ~ +

+

+ Bloguru +

+

No intro, this is list of RSS reader I follow:

+
http://antirez.com/rss
+http://matt3o.com/feed/
+http://tonsky.me/blog/atom.xml
+https://begriffs.com/atom.xml
+https://blog.jonlu.ca/feed.xml
+https://blog.rust-lang.org/feed.xml
+https://blog.wesleyac.com/feed.xml
+https://brandur.org/atoms
+https://danielms.site/index.xml
+https://drewdevault.com/blog/index.xml
+https://emersion.fr/blog/atom.xml
+https://fabiensanglard.net/rss.xml
+https://fasterthanli.me/index.xml
+https://furbo.org/feed
+https://go.dev/blog/feed.atom
+https://goughlui.com/feed/
+https://grumpy.website/feed.xml
+https://kristoff.it/index.xml
+https://michael.stapelberg.ch/feed.xml
+https://mitchellh.com/feed.xml
+https://mtlynch.io/index.xml
+https://neil.computer/rss
+https://nora.codes/index.xml
+https://ntietz.com/atom.xml
+https://robertheaton.com/feed.xml
+https://utcc.utoronto.ca/~cks/space/blog/?atom
+https://www.basicappleguy.com/basicappleblog?format=rss
+https://www.codemadness.org/atom_content.xml
+https://www.copetti.org/index.xml
+https://www.jeffgeerling.com/blog.xml
+https://www.thecodedmessage.com/index.xml
+https://www.workspaces.xyz/p/rss.xml
+https://ziglang.org/news/index.xml
+
+ +
+ Feel free to ask me via + email or + Mastodon. +
Source code is available on + GitHub + Codeberg + sourcehut + Treehouse + GitLab +
+ + diff --git a/docs/index.html b/docs/index.html index 37cfa9f..61a27dc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -63,6 +63,12 @@
  • F(an) android
  • Cache shenanigan
  • VSCode
  • +
  • Hardware 101
  • +
  • + Real World Crypto 101 +
  • +
  • Vietnam survivor
  • +
  • Bloguru
  • diff --git a/posts/2023-09-23-bloguru.md b/posts/2023-09-23-bloguru.md new file mode 100644 index 0000000..2607728 --- /dev/null +++ b/posts/2023-09-23-bloguru.md @@ -0,0 +1,39 @@ +# Bloguru + +No intro, this is list of RSS reader I follow: + +``` +http://antirez.com/rss +http://matt3o.com/feed/ +http://tonsky.me/blog/atom.xml +https://begriffs.com/atom.xml +https://blog.jonlu.ca/feed.xml +https://blog.rust-lang.org/feed.xml +https://blog.wesleyac.com/feed.xml +https://brandur.org/atoms +https://danielms.site/index.xml +https://drewdevault.com/blog/index.xml +https://emersion.fr/blog/atom.xml +https://fabiensanglard.net/rss.xml +https://fasterthanli.me/index.xml +https://furbo.org/feed +https://go.dev/blog/feed.atom +https://goughlui.com/feed/ +https://grumpy.website/feed.xml +https://kristoff.it/index.xml +https://michael.stapelberg.ch/feed.xml +https://mitchellh.com/feed.xml +https://mtlynch.io/index.xml +https://neil.computer/rss +https://nora.codes/index.xml +https://ntietz.com/atom.xml +https://robertheaton.com/feed.xml +https://utcc.utoronto.ca/~cks/space/blog/?atom +https://www.basicappleguy.com/basicappleblog?format=rss +https://www.codemadness.org/atom_content.xml +https://www.copetti.org/index.xml +https://www.jeffgeerling.com/blog.xml +https://www.thecodedmessage.com/index.xml +https://www.workspaces.xyz/p/rss.xml +https://ziglang.org/news/index.xml +``` diff --git a/posts/index.md b/posts/index.md index 77f385a..9439a20 100644 --- a/posts/index.md +++ b/posts/index.md @@ -29,3 +29,7 @@ This is where I dump my thoughts. - [F(an) android](2023-07-02-fandroid.html) - [Cache shenanigan](2023-07-30-cache-shenanigan.html) - [VSCode](2023-08-09-vscode.html) +- [Hardware 101](2023-08-20-hardware.html) +- [Real World Crypto 101](2023-08-23-real-world-crypto.html) +- [Vietnam survivor](2023-09-14-vietnam-survivor.html) +- [Bloguru](2023-09-23-bloguru.html)