TypeScript 多场景设计方案及应用实践
listModule TS Express/Koa 我们花了了⼤大概 200 ⾏行行代码,简单实现了了在 express ,相同的代码,但是不不同的场景。 同样的,我们尝试在 typeorm 领域,扩充我 们的装饰器器。 传统 Web 场景初试 TS 传统 Web 场景初试 Express/Koa TS 传统 Web 场景初试 Express/Koa TS 跨场景 不不同场景公⽤用⼤大部分装饰器器 不不同场景公⽤用⼤大部分装饰器器 TS 同场景跨类型 类似场景复⽤用装饰器器 TS Injection Midway-egg Midway-core Midway- express Midway-koa Midway-rpc Midway-faas Midway-orm Midway- schedule TS Midway-bin midway-Jar2pxoy midway-faas-fun Midway-Definition Midway-faas-mock Midway-orm-tools Injection Midway-egg Midway-core Midway- express Midway-koa Midway-rpc Midway-faas Midway-orm Midway- schedule midway-rpc-generator Midway-rpc-mock0 码力 | 95 页 | 8.28 MB | 1 年前3
个推微服务实践lib library express+co WebNode conf ������� ������-���� A B C OpenResty �Nginx+lua� a b c upstream upstream Java Jetty X Y lib library lua WebLua conf lib library express+co WebNode OpenResty �Nginx+lua� ������ Git�� �� Build& Deploy ������� WebNode a b c lib library express+co apps����� conf OpenResty �Nginx+lua� ������ Git�� upstream Build& Deploy ������� ������� ��Api������ A B C lib library lua apps����� conf OpenResty �Nginx+lua� �� a b c lib library express+co apps����� conf upstream �� ��api�� �� �� � lua app�� � lua require Node app� �� node require0 码力 | 32 页 | 1.16 MB | 1 年前3
全栈⼯程师之路 Node.js• 前端(moa-frontend) • SDK(OAuth Provider) • 辅助开发 cli ⼯工具 ⺫⽬目前进度 • 使⽤用 0.10.38,开发 Moajs 框架,Express / MongoDB • pm2 部署, 前后端分离 • 阿⾥里云的 slb 负载,alinode 监控 • moa-api, moa-frontend, moa-h5 (未能⽤用) • 前端:moa-frontend • public下⾯面的采⽤用nginx做反向代理 • 其他的采⽤用express+jade精简代码(ajax与后端 交互) • 后端:moa-api • 1)moa⽣生成器 • 2)moa-frontend • express • jade • bootstrap、bootstrap-table • jquery • gulp 4 阶段循序渐进,build 与⼯工具⻬齐⻜飞 从前端转 • 玩转 npm、gulp 这样的前端⼯工具类(此时还是前端) • 使⽤用 Node 做前后端分离(此时还是前端) • Express、Koa 这类框架 • Jade、ejs 等模板引擎 • Nginx • 玩转【后端】异步流程处理 promise / es6 的 ( generator | yield) / es70 码力 | 50 页 | 1.35 MB | 1 年前3
鸟哥的 Linux 私房菜:基础学习篇 第四版上述的图片中,主板上面设计的插槽主要有 CPU (Intel LGA 1150 Socket)、内存 (DDR3 3200 support)、显卡接口 (PCIe3.0)、SATA 磁盘插槽 (SATA express)等等。 下面的 元件在解说的时候,请参考上述两张图示来印证喔! 0.2.1 执行脑袋运算与判断的 CPU 如同华硕主板示意图上半部的中央部分,那就是CPU插槽。 由于CPU负责大量运算,因此 (尤其是3D游戏)来说, 显卡也是需要高速运算的一个元件,所以数据的传输也是越快越 好!因此显卡的规格由早期的PCI导向AGP, 近期AGP又被PCI-Express规格所取代了。如前 面华硕主板图示当中看到的就是PCI-Express的插槽。 这些插槽最大的差异就是在数据传输的 带宽了!如下所示: 规格 宽度 速度 带宽 PCI 32 bits 33 MHz 133 MBytes/s 0 x1 无 无 250 MBytes/s PCIe 1.0 x8 无 无 2 GBytes/s PCIe 1.0 x16 无 无 4 GBytes/s 比较特殊的是,PCIe(PCI-Express)使用的是类似管线的概念来处理,在 PCIe 第一版 (PCIe 1.0) 中,每条管线可以具有250MBytes/s的带宽性能, 管线越多(通常设计到 x16 管线)则总带宽越高!另外,为了提升更多的带宽,因此0 码力 | 1158 页 | 13.73 MB | 1 年前3
鸟哥的Linux私房菜:基础学习篇 第四版上述的图片中,主板上面设计的插槽主要有 CPU (Intel LGA 1150 Socket)、内存 (DDR3 3200 support)、显卡接口 (PCIe3.0)、SATA 磁盘插槽 (SATA express)等等。 下面的元件在解说的时候,请 参考上述两张图示来印证喔! 如同华硕主板示意图上半部的中央部分,那就是CPU插槽。 由于CPU负责大量运算,因此CPU通常是具有相当高发热 量的元件。所以如果你曾经拆开过主板, (尤其是3D游戏)来说, 显 卡也是需要高速运算的一个元件,所以数据的传输也是越快越好!因此显卡的规格由早期的PCI导向AGP, 近期AGP 又被PCI-Express规格所取代了。如前面华硕主板图示当中看到的就是PCI-Express的插槽。 这些插槽最大的差异 就是在数据传输的带宽了!如下所示: 规格 宽度 速度 带宽 PCI 32 bits 33 MHz 133 MBytes/s 0 x1 无 无 250 MBytes/s PCIe 1.0 x8 无 无 2 GBytes/s PCIe 1.0 x16 无 无 4 GBytes/s 比较特殊的是,PCIe(PCI-Express)使用的是类似管线的概念来处理,在 PCIe 第一版 (PCIe 1.0) 中,每 条管线可以具有250MBytes/s的带宽性能, 管线越多(通常设计到 x16 管线)则总带宽越高!另外,为了提升更0 码力 | 1057 页 | 14.60 MB | 1 年前3
Curve文件系统元数据Proto(接口定义)License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations0 码力 | 15 页 | 80.33 KB | 6 月前3
《玩转webpack》 第二章 基础篇: webpack 基础用法webpack-dev-middleware const express = require('express'); const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev- middleware'); const app = express(); const config = require('0 码力 | 41 页 | 2.52 MB | 1 年前3
httpd 2.4.8.dev 中文文档FastCGI Protocol backend for mod_proxy mod_proxy_scgi SCGI Protocol backend for mod_proxy mod_proxy_express Provides dynamically configured mass reverse proxies for mod_proxy mod_remoteip Replaces the apparent provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under0 码力 | 2404 页 | 1.84 MB | 1 年前3
httpd 2.4.23 中文文档FastCGI Protocol backend for mod_proxy mod_proxy_scgi SCGI Protocol backend for mod_proxy mod_proxy_express Provides dynamically configured mass reverse proxies for mod_proxy mod_remoteip Replaces the apparent provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under0 码力 | 2559 页 | 2.11 MB | 1 年前3
httpd 2.4.9 中文文档FastCGI Protocol backend for mod_proxy mod_proxy_scgi SCGI Protocol backend for mod_proxy mod_proxy_express Provides dynamically configured mass reverse proxies for mod_proxy mod_remoteip Replaces the apparent provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under0 码力 | 2398 页 | 1.84 MB | 1 年前3
共 126 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13













