feat: more blogs

main
sudo pacman -Syu 2023-09-24 00:04:02 +07:00
parent 25b5ff72f9
commit 25957eb36b
5 changed files with 159 additions and 25 deletions

View File

@ -47,33 +47,34 @@
re-write to cache
</li>
</ul>
<pre lang="mermaid"><code>sequenceDiagram
participant other
participant service
participant cache
participant db
<div class="highlight highlight-source-mermaid">
<pre><span class="pl-k">sequenceDiagram</span>
<span class="pl-k">participant</span> <span class="pl-ent">other</span>
<span class="pl-k">participant</span> <span class="pl-ent">service</span>
<span class="pl-k">participant</span> <span class="pl-ent">cache</span>
<span class="pl-k">participant</span> <span class="pl-ent">db</span>
other -&gt;&gt; service: get data
activate service
service -&gt;&gt; cache: get data
alt exist in cache
service --&gt;&gt; other: return data
else not exist in cache
service -&gt;&gt; db: get data
alt exist data in db
service --&gt;&gt; other: return data
else not exist data in db
service --&gt;&gt; other: return error not found
end
end
deactivate service
<span class="pl-ent">other </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">service</span><span class="pl-k">:</span> <span class="pl-s">get data</span>
<span class="pl-k">activate</span> <span class="pl-ent">service</span>
<span class="pl-ent">service </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">cache</span><span class="pl-k">:</span> <span class="pl-s">get data</span>
<span class="pl-k">alt</span> <span class="pl-s">exist in cache</span>
<span class="pl-ent">service </span><span class="pl-k">--&gt;&gt;</span> <span class="pl-ent">other</span><span class="pl-k">:</span> <span class="pl-s">return data</span>
<span class="pl-k">else</span> <span class="pl-s">not exist in cache</span>
<span class="pl-ent">service </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">db</span><span class="pl-k">:</span> <span class="pl-s">get data</span>
<span class="pl-k">alt</span> <span class="pl-s">exist data in db</span>
<span class="pl-ent">service </span><span class="pl-k">--&gt;&gt;</span> <span class="pl-ent">other</span><span class="pl-k">:</span> <span class="pl-s">return data</span>
<span class="pl-k">else</span> <span class="pl-s">not exist data in db</span>
<span class="pl-ent">service </span><span class="pl-k">--&gt;&gt;</span> <span class="pl-ent">other</span><span class="pl-k">:</span> <span class="pl-s">return error not found</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-k">deactivate</span> <span class="pl-ent">service</span>
other -&gt;&gt; service: set data
activate service
service -&gt;&gt; db: set data
service -&gt;&gt; cache: set data
deactivate service
</code></pre>
<span class="pl-ent">other </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">service</span><span class="pl-k">:</span> <span class="pl-s">set data</span>
<span class="pl-k">activate</span> <span class="pl-ent">service</span>
<span class="pl-ent">service </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">db</span><span class="pl-k">:</span> <span class="pl-s">set data</span>
<span class="pl-ent">service </span><span class="pl-k">-&gt;&gt;</span> <span class="pl-ent">cache</span><span class="pl-k">:</span> <span class="pl-s">set data</span>
<span class="pl-k">deactivate</span> <span class="pl-ent">service</span></pre>
</div>
<p>It's good for general cases, for example with CRUD action.</p>
<p>
The bad things happen when cache and database are not consistent. For

View File

@ -0,0 +1,84 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css"
/>
<title>haunt98 posts</title>
</head>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<body class="markdown-body">
<h2>
<a href="index.html"><code>~</code></a>
</h2>
<h1 id="user-content-bloguru">
<a class="heading-link" href="#bloguru"
>Bloguru<span aria-hidden="true" class="octicon octicon-link"></span
></a>
</h1>
<p>No intro, this is list of RSS reader I follow:</p>
<pre><code>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
</code></pre>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>.
<br />Source code is available on
<a href="https://github.com/haunt98/posts-go">GitHub</a>
<a href="https://codeberg.org/yoshie/posts-go">Codeberg</a>
<a href="https://git.sr.ht/~youngyoshie/posts-go">sourcehut</a>
<a href="https://gitea.treehouse.systems/yoshie/posts-go">Treehouse</a>
<a href="https://gitlab.com/youngyoshie/posts-go">GitLab</a>
</div>
</body>
</html>

View File

@ -63,6 +63,12 @@
<li><a href="2023-07-02-fandroid.html">F(an) android</a></li>
<li><a href="2023-07-30-cache-shenanigan.html">Cache shenanigan</a></li>
<li><a href="2023-08-09-vscode.html">VSCode</a></li>
<li><a href="2023-08-20-hardware.html">Hardware 101</a></li>
<li>
<a href="2023-08-23-real-world-crypto.html">Real World Crypto 101</a>
</li>
<li><a href="2023-09-14-vietnam-survivor.html">Vietnam survivor</a></li>
<li><a href="2023-09-23-bloguru.html">Bloguru</a></li>
</ul>
<div>

View File

@ -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
```

View File

@ -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)