avatar
Articles
660
Tags
199
Categories
92
Home
Archives
Tags
Categories
About
ByteCodingGraal VM:云原生时代的Java(转载) Back to Home
Home
Archives
Tags
Categories
About

Graal VM:云原生时代的Java(转载)

Created2021-06-19|Cloud NativeJava
|Word Count:0|Reading Time:1mins
Author: zhongmingmao
Link: https://blog.zhongmingmao.top/2021/06/19/cloud-native-java/
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Cloud Native
cover of previous post
Previous
声明式API -- 基本概念
命令式 vs 声明式命令式12# kubectl create -f nginx.yaml# kubectl replace -f nginx.yaml 声明式1# kubectl apply -f nginx.yaml 所谓声明式,即只需要提交一个定义好的API对象来声明所期待的状态即可 声明式API允许多个API写端,以PATCH的方式对API对象进行修改,而无需关心本地原始YAML文件的内容 声明式API最主要的能力:_PATCH API_ 声明式API是Kubernetes编排能力赖以生存的核心所在 本质区别 kubectl replace kubectl apply 执行过程 使用新API对象替换旧API对象 执行对旧API对象的PATCH操作类似:kubectl set image、kubectl edit kube-apiserver 一次只能处理一个写请求,否则可能产生冲突 一次能处理多个写请求,具备Merge能力 Kubernetes编程范式 使用控制器模式,与Kubernetes里API对象的『增、删、改、查』进行协作,进而完成用户业务逻辑的编写 ...
cover of next post
Next
容器编排 -- Job
编排对象 在线业务:Deployment、StatefulSet、DaemonSet 离线业务:Job、CronJob Jobjob.yaml Job对象不需要定义spec.selector(借助UUID) job.yaml12345678910111213141516apiVersion: batch/v1kind: Jobmetadata: name: pispec: template: spec: containers: - name: pi image: resouer/ubuntu-bc command: - sh - '-c' - "echo 'scale=10000; 4*a(1)' | bc -l" restartPolicy: Never backoffLimit: 4 创建Job123456# kubectl apply -f job.yamljob.batch/pi ...
Related Articles
cover
2022-10-11
Cloud Native Foundation - Go IO
阻塞 IO 阻塞:等待数据就绪 阻塞 + 同步 非阻塞 IO 非阻塞:等待数据就绪 轮询:效率不高 非阻塞 + 同步 IO 多路复用 (集中线程)阻塞 + 同步 当数据就绪后,集中线程会唤醒其他线程,阻塞的仅仅只是一个线程 select / poll 通过传参的形式来轮询 fd 列表,长度有上限(1024) epoll 通过 mmap 将用户态的内存和内核态的内存进行共享,不再需要传参,解决了 fd 长度受限的问题 基于事件侦听,而非轮询wq: wait queue, rdlist: ready list, rbr: red black tree Go HTTP:goroutine 与 fd 绑定 异步 IO 非阻塞 + 异步 异步:拷贝数据(Socket 缓冲区 -> 应用缓冲区)的过程也是由 Kernel 来完成
cover
2021-07-07
云原生 -- 概述
定义最佳路径 云原生是一条使用户能低心智负担的、敏捷的、以可扩展、可复制的方式,最大化地利用云的能力,发挥云的价值的最佳路径 愿景 软件从诞生就生在云上、长在云上,全新的软件开发、发布和运维模式 技术范畴 理论基础 理论基础 目前实现 不可变基础设施 容器镜像 云应用编排理论 容器设计模式 意义 Key Value 基础设施一致性和可靠性 容器镜像自包含可漂移 简单可预测的部署与运维 自描述、自运维流程自动化容易水平扩展可快速复制的管控系统和支撑组件 关键技术点 参考资料 CNCF × Alibaba 云原生技术公开课
cover
2025-01-21
Observability - OpenTelemetry Java Zero Code
Java Agent Zero-code instrumentation with Java uses a Java agent JAR attached to any Java 8+ application. It dynamically injects bytecode to capture telemetry from many popular libraries and frameworks. It can be used to capture telemetry data at the “edges” of an app or service such as inbound requests, outbound HTTP calls, database calls, and so on. Getting startedSetup Download opentelemetry-javaagent.jar from Releases of the opentelemetry-java-instrumentation repository place the JAR in your pre...
cover
2022-12-26
Security - OPA Management
Overview & Architecture OPA exposes a set of APIs that enable unified, logically centralized policy management. Read this page if you are interested in how to build a control plane around OPA that enables policy distribution and collection of important telemetry data like decision logs. OPA enables low-latency, highly-available policy enforcement by providing a lightweight engine for distributed architectures.By default, all of the policy and data that OPA uses to make decisions is kept in-memory...
cover
2022-07-17
Spring Cloud - Service Discovery
Webflux WebClient 底层原理
cover
2023-02-11
APISIX - Doc
Feature Apache APISIX 基于 Radixtree Route 和 etcd 提供路由极速匹配与配置快速同步的能力 Apache APISIX 提供了自定义插件的能力 可以在 Balancer 阶段使用自定义负载均衡算法,并使用自定义路由算法对路由进行精细化控制 Apache APISIX 提供了配置热更新、插件热加载能力,在不重新启动实例的情况下可快速更新配置 Quick Start路由 Apache APISIX 使用 routes 来提供灵活的网关管理功能,在一个请求中,routes 包含了访问路径和上游目标等信息 Route Route 是访问上游目标的路径 过程 通过预定的规则来匹配客户端请求 然后加载和执行相应的插件 最后将请求转发至特定的 Upstream 一个最简单的 Route 仅由匹配路径和 Upstream 地址两个信息组成 Upstream Upstream 是一组具备相同功能的节点集合,它是对虚拟主机的抽象 Upstream 可以通过预先配置的规则对多个服务节点进行负载均衡 Examples 创建路由 = Uri + Upstr...
avatar
zhongmingmao
Focus on Infrastructure.
Articles
660
Tags
199
Categories
92
Announcement
Things are always unexpected!
Recent Posts
K8S Orchestration - KRO V2
K8S Orchestration - KRO V22026-04-29
K8S Orchestration - KRO V1
K8S Orchestration - KRO V12026-04-28
Authorization - Casbin API
Authorization - Casbin API2026-04-13
Authorization - Casbin Management
Authorization - Casbin Management2026-04-13
Authorization - Casbin Plugin
Authorization - Casbin Plugin2026-04-12
© 2015 - 2026 By zhongmingmao
Life is like a box of chocolates. You can't know what you'll eat until you open it.