摘要:
kubernetes https://kubernetes.io/ K8S是自动化部署,伸缩,容器应用的管理工具。 Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling,
阅读全文
posted @ 2022-01-10 00:00
lightsong
阅读(166)
推荐(0)
摘要:
GITOps https://www.gitops.tech/ 实现云原生应用自动化部署的方法 在运维基础设施时候,聚焦在开发行者中心的体验上, 使用开发者熟悉的工具, 例如git和其它持续发布工具。 GitOps is a way of implementing Continuous Deploy
阅读全文
posted @ 2021-12-29 15:41
lightsong
阅读(136)
推荐(0)
摘要:
Infrastructure as Code https://geekflare.com/infrastructure-as-code-intro/ 使用软件开发的原理和实践来实现基础设施的自动化。 写代码来管理 服务器 数据库 网络 日志 应用部署和配置。 Infrastructure as co
阅读全文
posted @ 2021-12-28 23:44
lightsong
阅读(255)
推荐(0)
摘要:
Scalable System Design Patterns== 可扩展系统设计模式 https://dzone.com/articles/scalable-system-design 负载均衡 分发器负责将请求根据不同的策略,分发到对应的worker实例上。 要求所有的worker上不存储状态信
阅读全文
posted @ 2021-12-27 17:26
lightsong
阅读(121)
推荐(0)
摘要:
Inner Loop vs Outer Loop https://opensource.com/article/21/6/open-source-developer-tools inner loop是开发者的最常做的事情, 编码 运行 验证 调试 outer loop是我们经常提及的CI/CD, 从
阅读全文
posted @ 2021-12-27 12:17
lightsong
阅读(147)
推荐(0)
摘要:
dispatcher https://hub.packtpub.com/dispatchers-and-routers/ 分发器,接收消息,分发到对应的模块进行处理。 Dispatchers In the real world, dispatchers are the communication c
阅读全文
posted @ 2021-12-23 17:04
lightsong
阅读(193)
推荐(0)
摘要:
Overview https://docs.docker.com/network/ docker强大之处在于实现资源隔离的同时,也可是构建容器连接,容器和容器(同主机),容器和容器(不同主机),或者容器和外部, One of the reasons Docker containers and ser
阅读全文
posted @ 2021-12-15 12:30
lightsong
阅读(199)
推荐(0)
摘要:
Jenkins Jobs status dashboard by Build Monitor Plugin https://www.devopsart.com/2020/05/jenkins-jobs-status-dashboard-by-build.html https://plugins.je
阅读全文
posted @ 2021-12-15 10:24
lightsong
阅读(199)
推荐(0)
摘要:
背景 同一个Jenkins服务器上,存在的Job越多,越需要进行归类管理。 View -- 分类 https://subscription.packtpub.com/book/application_development/9781784390891/3/ch03lvl1sec22/creating
阅读全文
posted @ 2021-12-14 17:03
lightsong
阅读(505)
推荐(0)
摘要:
CI/CD System https://www.redhat.com/en/topics/devops/what-is-ci-cd#ci/cd-tools CI关注开发阶段 CD -- Delivery 对应版本的自动化发布, 发布到制品库, 但是部署可能后续为手动 CD -- Deploymen
阅读全文
posted @ 2021-12-13 17:07
lightsong
阅读(327)
推荐(0)
摘要:
Pipeline as Code https://www.jenkins.io/doc/book/pipeline-as-code/ Pipeline as Code describes a set of features that allow Jenkins users to define pip
阅读全文
posted @ 2021-12-13 00:28
lightsong
阅读(156)
推荐(0)
摘要:
mysql & mysqldump https://serverguy.com/servers/how-to-backup-mysql-database/ 将数据库数据导出为 SQL语句。 mysqldump mysql-database > ABC-database-backup.sql mysq
阅读全文
posted @ 2021-12-07 14:31
lightsong
阅读(153)
推荐(0)
摘要:
marshmallow-sqlalchemy https://marshmallow-sqlalchemy.readthedocs.io/en/latest/ https://github.com/marshmallow-code/marshmallow-sqlalchemy SQLAlchemy
阅读全文
posted @ 2021-12-02 14:29
lightsong
阅读(668)
推荐(0)
摘要:
why need alembic? After defining ORM CLASS, we need to create table by the ORM class. https://docs.sqlalchemy.org/en/14/orm/tutorial.html#declare-a-ma
阅读全文
posted @ 2021-11-30 17:09
lightsong
阅读(178)
推荐(0)
摘要:
SQL COUNT() with GROUP by https://www.w3resource.com/sql/aggregate-functions/count-with-group-by.php The use of COUNT() function in conjunction with G
阅读全文
posted @ 2021-11-28 00:03
lightsong
阅读(610)
推荐(0)
摘要:
sqlalchemy https://www.sqlalchemy.org/ The Python SQL Toolkit and Object Relational Mapper SQLAlchemy is the Python SQL toolkit and Object Relational
阅读全文
posted @ 2021-11-26 15:20
lightsong
阅读(304)
推荐(0)
摘要:
django model https://docs.djangoproject.com/en/3.2/topics/db/models/ django的ORM工具, 具有非常简洁的接口,遵从django快速开发的理念。 但是此工具是跟django深度绑定的, 很难独立使用。 A model is t
阅读全文
posted @ 2021-11-22 00:16
lightsong
阅读(296)
推荐(0)
摘要:
Are locks unnecessary in multi-threaded Python code because of the GIL? https://stackoverflow.com/questions/105095/are-locks-unnecessary-in-multi-thre
阅读全文
posted @ 2021-11-14 18:28
lightsong
阅读(300)
推荐(0)
摘要:
Marking extra actions for routing https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing ModelViewSet集成了 CRUD 所有功
阅读全文
posted @ 2021-11-13 22:51
lightsong
阅读(114)
推荐(0)
摘要:
lerna https://lerna.js.org/ https://github.com/lerna/lerna 对于规模大的项目, 使用单独一个库管理, 但是内部分为多个package的情况; 使用此工具管理。 Splitting up large codebases into separat
阅读全文
posted @ 2021-11-12 14:18
lightsong
阅读(127)
推荐(0)
摘要:
django migration https://docs.djangoproject.com/en/3.2/topics/migrations/ Migrations are Django’s way of propagating changes you make to your models (
阅读全文
posted @ 2021-11-09 12:32
lightsong
阅读(202)
推荐(0)
摘要:
react-sketch https://github.com/tbolis/react-sketch Sketch Tool for React-based applications, backed up by FabricJS tbolis.github.io/showcase/react-sk
阅读全文
posted @ 2021-11-09 10:46
lightsong
阅读(216)
推荐(0)
摘要:
Shell IO https://tecadmin.net/prompt-user-input-in-linux-shell-script/# Take Input on Termianl Let’s begin with input directly on terminal. Open a ter
阅读全文
posted @ 2021-11-04 09:51
lightsong
阅读(656)
推荐(0)
摘要:
mapDispatchToProps of react-redux https://react-redux.js.org/using-react-redux/connect-mapdispatch Two Forms of mapDispatchToProps The mapDispatchToP
阅读全文
posted @ 2021-11-01 16:04
lightsong
阅读(66)
推荐(0)
摘要:
echo模型 https://channels.readthedocs.io/en/stable/tutorial/part_2.html 浏览器请求, channels给响应。 receive回调接受消息, send接口发送响应消息 # chat/consumers.py import json
阅读全文
posted @ 2021-11-01 00:04
lightsong
阅读(109)
推荐(0)
摘要:
react-router-dom https://github.com/remix-run/react-router/blob/main/docs/getting-started/tutorial.md 对于location的变化, 不论是 hashtag方式, 或者是 通过pushstate改变u
阅读全文
posted @ 2021-10-31 22:29
lightsong
阅读(1029)
推荐(0)
摘要:
User authentication in Django https://docs.djangoproject.com/en/3.2/topics/auth/ django带有一个用户认证系统,能够处理 用户账户、组、许可、基于cookie的用户会话。 Django comes with a us
阅读全文
posted @ 2021-10-31 18:14
lightsong
阅读(214)
推荐(0)
摘要:
background 基于django和react构建开发环境: django+restframework作为后台API提供者 react+ant design作为前端UI框架 利用django和react的开发工具的热更新功能, 实现前后台代码更新都不需要手动重启server。 如下拓扑图。 首先
阅读全文
posted @ 2021-10-31 09:55
lightsong
阅读(84)
推荐(0)
摘要:
type annotations https://docs.python.org/3.6/library/typing.html 为类类型提示(IDE or 人类可读)设计, 又叫类型注解。 typing — Support for type hints This module supports t
阅读全文
posted @ 2021-10-26 14:59
lightsong
阅读(139)
推荐(0)
摘要:
Draw and Guess Game https://github.com/fanqingsong/draw_guess draw and guess based on django_channels_chat_official_tutorial_react project, create dra
阅读全文
posted @ 2021-10-24 11:23
lightsong
阅读(122)
推荐(0)
摘要:
Invoke https://docs.pyinvoke.org/en/stable/ The invoke CLI tool Details on the CLI interface to Invoke, available core flags, and tab completion optio
阅读全文
posted @ 2021-10-21 15:26
lightsong
阅读(106)
推荐(0)
摘要:
Django Channels Django 仅仅支持 HTTP协议, Channels 扩展了支持的协议类型, 例如 websocket,chat, IoT. 本身实现基于ASGI协议。 但是你也可以选择 同步模式。 https://channels.readthedocs.io/en/stabl
阅读全文
posted @ 2021-10-20 17:28
lightsong
阅读(134)
推荐(0)
摘要:
OverView Django View -- Root https://docs.djangoproject.com/en/3.2/ref/class-based-views/base/#view 所有view视图的基类, 此类不是通用视图,被业务视图继承。 class django.views.
阅读全文
posted @ 2021-10-17 23:40
lightsong
阅读(115)
推荐(0)
摘要:
ViewSets & Routers https://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/ ViewSets是对模型的高度抽象, 让开发者聚焦于建模状态, 和 接口的交互, 基于通用的规则构建URL. REST
阅读全文
posted @ 2021-10-13 00:08
lightsong
阅读(121)
推荐(0)
摘要:
Relationships & Hyperlinked APIs https://www.django-rest-framework.org/tutorial/5-relationships-and-hyperlinked-apis/ 对于表之间的关联关系, ModelSerializer 默认是使
阅读全文
posted @ 2021-10-12 23:39
lightsong
阅读(134)
推荐(0)
摘要:
Authentication & Permissions https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ 对于view需要限制用户的访问权限, 例如认证 和 许可。 Currently
阅读全文
posted @ 2021-10-12 23:21
lightsong
阅读(139)
推荐(0)
摘要:
Class-based Views https://www.django-rest-framework.org/tutorial/3-class-based-views/ APIView 继承于 django view类提供了 http method 方法的抽象, 即继承于此类的应用类中, 可以定义
阅读全文
posted @ 2021-10-12 22:30
lightsong
阅读(102)
推荐(0)
摘要:
Requests and Responses https://www.django-rest-framework.org/tutorial/2-requests-and-responses/ Request 请求类,扩展了 httprequest类。 请求数据存储在 request.data 成员中
阅读全文
posted @ 2021-10-12 15:18
lightsong
阅读(103)
推荐(0)
摘要:
Django REST framework Django 支持MTV模式, 前端渲染的内容,放在了后端 template中实施,包括获取数据,渲染模板一系列过程都在候选执行。 在前端能力强大的现在, 前后端分离开发模式已经成为主流, 所以后端只提供API, 于前端进行数据交互,成为业界主流。 此框架
阅读全文
posted @ 2021-10-12 15:06
lightsong
阅读(89)
推荐(0)
摘要:
Metaclasses https://www.python.org/dev/peps/pep-3115/ 元类的诞生是来自于大量有趣的用例, 要求在类创建的过程中,就可以参与到类的定制逻辑中去。 The primary reason for changing the way metaclasses
阅读全文
posted @ 2021-10-10 23:50
lightsong
阅读(124)
推荐(0)