This is the architecture I designed for service “Managed Service for Alibaba Cloud” of company production. It’s also my common architecture that can be used to deploy distributed Python applications or service based on workers or MQ. This is a easy to upgrade architecture. You can simply add other service or make it becoming microservices.
Continue reading之前在这篇blog中介绍过使用Azure Client az
来部署生成到网站. 使用az
很方便,但是也有些缺点,例如会把整个网站全部重新上传一遍,速度慢不说,还浪费多次blob
的操作。后来找到了另外一个工具rclone
(下载、安装、文档,或使用各平台包管理器安装),它可以像rsync
一样同步本地和远端文件,只更新变化过的文件。
_所有静态网站都可用采用此方法_
之前,个人博客一直都是用 Hexo 生成并部署为 GitHub Pages。最近知道,因为百度的爬虫太频繁而被 GitHub 屏蔽了,所以所有部署在 GitHub 上的网站都没有收录。不深究这个理由是否靠谱,得给博客换个地方了。
手头有 Azure 和 Vultr 的 VPS,但考虑到部署静态网站到 VPS 有点大材小用,而且需要部署 HTTPServer 防火墙
Continue reading
We are encrypting sensitive content with AES algorithm and storing them in DB. Now we plan to leverage HashiCorp Vault to do this.
Continue readingIn “Managed Service for Alibaba Cloud” service project, we have some sensitive data such as secret key, vm password and so on stored in database. To avoid store plain text, we need a solution to encrypt and decrypt sensitive data.
Continue readingFabio is a HTTP router app written by Go language. It is Zero-configuration and simple to deploy. As official document mentioned, “It delivers 23.000 req/sec every day since Sep 2015 without problems”. It’s written and maintained by Frank Schroeder at eBay in Amsterdam.
Continue reading后来,了解了更多的方法,这种方法并不是一个比较好的方法,但仍不失为一个简单有效的方法。
用VM Player 4.0装了Ubuntu 12 server,然后复制了几个组成局域网来使用,发现了一些问题,网上基本上找不到完整的解决方法,这里记录下来。
Continue reading