随笔分类 -  云运维&&云架构

上一页 1 ··· 167 168 169 170 171 172 173 174 175 ··· 178 下一页

cratedb joins 原理(官方文档)
摘要:In this document we will present the following topics. First, an overview of the existing types of joins and algorithms provided. Then a description o 阅读全文

posted @ 2018-08-06 23:05 荣锋亮 阅读(782) 评论(0) 推荐(0) 编辑

cratedb geo 查询
摘要:cratedb支持的geo 查询还相对比较全,开发基本的功能已经够用了 安装cratedb 使用docker docker run -d -p 4200:4200 crate 创建数据库 创建表 CREATE TABLE country ( name string, country_code str 阅读全文

posted @ 2018-08-06 14:02 荣锋亮 阅读(837) 评论(0) 推荐(0) 编辑

cratedb 集群 docker-compose 安装试用
摘要:关于集群的配置说明可以参考官方文档,或者es 文档 详细代码参考 https://github.com/rongfengliang/cratedb-cluster-docker 参考配置 docker-compose version: "3" services: crate1: image: cra 阅读全文

posted @ 2018-08-06 10:25 荣锋亮 阅读(750) 评论(0) 推荐(0) 编辑

nginx brotli 压缩试用
摘要:brotli 的压缩比相对gzip 有好多提升 测试试用docker 测试代码 https://github.com/rongfengliang/rollup-babel-demolibrary 运行 构建镜像 docker-compose build 启动 docker-compose up -d 阅读全文

posted @ 2018-08-03 20:16 荣锋亮 阅读(1024) 评论(2) 推荐(0) 编辑

cratedb 基本试用
摘要:安装 docker run -d -p 4200:4200 crate UI访问 http://localhost:4200/#!/ 创建数据 tweets 是默认导入的,点击帮助导航可以操作 登陆 docker exec -it dockercontainerId sh crash 查询表 创建表 阅读全文

posted @ 2018-08-02 19:02 荣锋亮 阅读(3477) 评论(0) 推荐(0) 编辑

QLoo graphql engine 学习三 架构
摘要:一张官方的参考图 说明 Storage Layer API 参考了kubernetes 的设计 qloo 组成 qloo 有qloo 服务以及envoy proxy 组合而成,envoy proxy 作为sidecar qloo 操作envoy 作为control plane ,方便qloo 使用g 阅读全文

posted @ 2018-08-01 19:41 荣锋亮 阅读(304) 评论(0) 推荐(0) 编辑

QLoo graphql engine 学习二 基本试用(kubernetes)
摘要:已经测试过docker&& docker-compose 的运行模式,下面测试下kubernetes的运行模式 kubernetes 我使用docker for mac qloo 安装 下载 https://github.com/solo-io/qloo/releases https://githu 阅读全文

posted @ 2018-08-01 19:22 荣锋亮 阅读(506) 评论(0) 推荐(0) 编辑

QLoo graphql engine 学习一 基本试用(docker&&docker-compose)
摘要:说明:使用docker-compose 进行安装 代码框架 使用命令行工具创建 qlooctl install docker qloo-docker 运行qloo&&gloo 启动 cd ./qloo-docker docker-compose up 效果 配置glooctl &&qlooctl工具 阅读全文

posted @ 2018-08-01 18:50 荣锋亮 阅读(579) 评论(0) 推荐(0) 编辑

QLoo graphql engine了解
摘要:参考架构图 处理流程 使用gloo注册服务api 发现断电以及serverless 函数 更新graphql schema 在qloo的resolvermap 中连接schema定义的字段 特性 不用写代码设计graphql api 动态负载均衡 健康检查 opentracing 监控 客户端ssl 阅读全文

posted @ 2018-08-01 08:48 荣锋亮 阅读(245) 评论(0) 推荐(0) 编辑

hasura graphql server (haskell)构建
摘要:安装 &&运行pg(docker) version: '3.6' services: postgres: image: postgres environment: - "POSTGRES_PASSWORD:dalong" restart: always ports: - "5432:5432" vo 阅读全文

posted @ 2018-07-30 16:53 荣锋亮 阅读(476) 评论(0) 推荐(0) 编辑

hasura graphql subscriptions 使用
摘要:subscriptions graphql 的一项实时数据推送的功能,还是很方便的,自己在直接使用subscriptions-transport-ws npm 包 的时候运行一直有错误(主要是依赖的apollo版本),还好hasura graphql 默认提供了一个开发模版,还是比较方便的 模版cl 阅读全文

posted @ 2018-07-30 13:59 荣锋亮 阅读(1053) 评论(2) 推荐(0) 编辑

swagger api 转graphql npm 包试用
摘要:graphql 比较方便的进行api 的查询,操作,swagger 是一个方便的open api 描述标准,当前我们有比较多的 restapi 但是转换为graphql 是有成本的,还好swagger-to-graphql 这个npm 包帮助我们简化了操作 基本项目 具体项目参考 https://g 阅读全文

posted @ 2018-07-27 11:10 荣锋亮 阅读(608) 评论(0) 推荐(0) 编辑

hasura graphql auth-webhook api 说明
摘要:hasura graphql 生产的使用是推荐使用webhook 进行角色访问控制的,官方同时提供了一个nodejs 的简单demo 代码 git clone https://github.com/hasura/sample-auth-webhook 代码说明 项目结构 api 格式说明 项目结构 阅读全文

posted @ 2018-07-26 09:04 荣锋亮 阅读(755) 评论(0) 推荐(0) 编辑

hasura graphql 角色访问控制
摘要:目前从官方文档以及测试可以看出不加任何header的请求访问的是所有的数据,对于具有访问 控制的请求需要添加请求头,实际生产的使用需要集合web hook 的实现访问控制。 参考配置 访问请求 目前数据只有id=1 不匹配的 匹配的 没有添加角色的(获取所有数据) 几张官方的参考图 配置 开发环境测 阅读全文

posted @ 2018-07-25 20:48 荣锋亮 阅读(858) 评论(0) 推荐(0) 编辑

hasura graphql schema 导出
摘要:使用的是apollo 的插件 安装apollo npm install -g apollo 基本使用 因为我使用了模式拼接,所以地址有变动,一般是 http://host:port/v1alpha1/graphql 格式 apollo schema:download --endpoint=http: 阅读全文

posted @ 2018-07-25 19:25 荣锋亮 阅读(825) 评论(0) 推荐(0) 编辑

hasura graphql 模式拼接demo
摘要:实际上通过上边的介绍,模式拼接和hasura 基本没啥关系了,就是使用graphql-bindings 进行schema 合并了 基本demo 这个是官方提供的demo git clone https://github.com/hasura/graphql-schema-stitching-demo 阅读全文

posted @ 2018-07-25 19:11 荣锋亮 阅读(877) 评论(0) 推荐(0) 编辑

Reusing & Composing GraphQL APIs with GraphQL Bindings
摘要:With GraphQL bindings you can embed existing GraphQL APIs into your GraphQL server. In previous blog posts, we introduced the idea of schema stitching 阅读全文

posted @ 2018-07-25 17:12 荣锋亮 阅读(788) 评论(0) 推荐(0) 编辑

hasura graphql 模式拼接概念
摘要:具体的使用可以参考下面一张图 有一个术语 graphql-bindings 参考项目: https://github.com/hasura/generate-graphql-bindings https://github.com/graphql-binding/graphql-binding 使用的 阅读全文

posted @ 2018-07-25 16:50 荣锋亮 阅读(508) 评论(0) 推荐(0) 编辑

hasura graphql pg 自定义函数的使用
摘要:hasura graphql 的安装可以参考相关项目 创建函数 数据表创建 CREATE TABLE sql_function_table ( id SERIAL PRIMARY KEY, input text NOT NULL, output text ); 创建函数以及触发器 CREATE FU 阅读全文

posted @ 2018-07-25 16:38 荣锋亮 阅读(529) 评论(0) 推荐(0) 编辑

gqlgen golang graphql server 基本试用
摘要:gqlgen golang 的graphql server 具体代码参考https://github.com/rongfengliang/gqlgen-demo 特点 模型优先 类型安全 代码生成 安装 go get -u github.com/vektah/gqlgen 创建schema sche 阅读全文

posted @ 2018-07-25 11:02 荣锋亮 阅读(1571) 评论(0) 推荐(0) 编辑

上一页 1 ··· 167 168 169 170 171 172 173 174 175 ··· 178 下一页

导航