摘要: 系统架构师|秒杀Redis高并发全套考点(最终完整版·考场满分) 前言 本文档为软考系统架构师秒杀高并发案例最全标准答案合集,全覆盖:四大锁机制、Redis七大秒杀策略、分布式锁进阶、RedLock红锁、缓存三大问题、标准考场话术,内容闭环、无遗漏、可直接默写得分。 第一部分:数据库四大并发锁机制( 阅读全文
posted @ 2026-09-26 13:35 zhh 阅读(37) 评论(0) 推荐(0)
摘要: 数据库并发控制:悲观锁、乐观锁 悲观锁:假定并发访问一定会发生冲突,访问资源前直接上锁,其他事务被阻塞,直到锁释放。数据库行排他锁就是典型悲观锁。 优点:数据强一致性,可杜绝超卖;缺点:锁会阻塞其他请求,并发性能差,高并发秒杀场景容易产生锁等待、死锁,吞吐量低。适合写冲突高、强一致性优先、并发量不大 阅读全文
posted @ 2026-09-26 12:40 zhh 阅读(26) 评论(0) 推荐(0)
摘要: <link href="path/to/cesium/Widgets/widgets.css" rel="stylesheet"> <script src="path/to/cesium/Cesium.js"></script> <div id="cesiumContainer"></div> <s 阅读全文
posted @ 2025-02-26 12:31 zhh 阅读(112) 评论(0) 推荐(0)
摘要: <!-- 引入 Cesium 核心库 --> <link href="path/to/cesium/Widgets/widgets.css" rel="stylesheet"> <script src="path/to/cesium/Cesium.js"></script> <div id="ces 阅读全文
posted @ 2025-02-26 11:50 zhh 阅读(164) 评论(1) 推荐(0)
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class LookAtMainCamera : MonoBehaviour { // Use this for initial 阅读全文
posted @ 2024-10-20 20:56 zhh 阅读(265) 评论(0) 推荐(0)
摘要: var longitude = 121d; var latitude = 37d; var height = 0d; double3 d3 = GameObject.Find("CesiumGeoreference").GetComponent<CesiumGeoreference>().Trans 阅读全文
posted @ 2024-10-18 10:28 zhh 阅读(589) 评论(0) 推荐(0)
摘要: 小流域通常是指集水面积不超过数百平方公里的小河小溪,但并无明确限制,一般认为流域面积在300~500km2以下可认为是小流域。从水文角度看小流域具有流域汇流以坡面汇流为主、水文资料缺乏、集水面积小等特性。小流域设计洪水计算,与大中流域相比,有许多特点,并且广泛应用于铁路、公路的小桥涵、中小型水利工程 阅读全文
posted @ 2024-07-08 16:36 zhh 阅读(2919) 评论(0) 推荐(0)
摘要: /** * Crate wall geometry * * @param {Cartesian3[]} positions * @param {number} height * @returns {Geometry} */ function createWallGeometry(positions, 阅读全文
posted @ 2024-01-02 09:12 zhh 阅读(120) 评论(0) 推荐(0)
摘要: import { Request, TerrainData, Rectangle } from 'cesium'; import * as turf from '@turf/turf'; import { Feature, Polygon } from '@turf/turf'; const MAX 阅读全文
posted @ 2023-08-29 16:33 zhh 阅读(84) 评论(0) 推荐(0)
摘要: Redis Server监控数据采集 ping,info all, slowlog get/len/reset/cluster info/config get Redis存活监控 redis-cli -h [ip] -p [port] -a [pwd] redis存活监控 (redis_alive) 阅读全文
posted @ 2023-04-26 10:25 zhh 阅读(114) 评论(0) 推荐(0)
摘要: 官方示例:Cesium Sandcastlehttps://sandcastle.cesium.com/?src=Corridor.html&label=Geometries <template> <div style="height: 100vh"> <div id="cesiumContaine 阅读全文
posted @ 2023-03-27 16:47 zhh 阅读(239) 评论(0) 推荐(0)
摘要: entity的闪烁主要是通过回调函数CallbackProperty,控制样式改变或是否显示 1. 点的闪烁 function f2(){ var x=1; var flog=true; viewer.entities.add({ name:"圆点point闪烁", position:Cesium. 阅读全文
posted @ 2023-03-27 15:14 zhh 阅读(1707) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maxi 阅读全文
posted @ 2022-07-16 10:20 zhh 阅读(42) 评论(0) 推荐(0)
摘要: casclient源代码下载链接:https://github.com/apereo/java-cas-client cas官网链接:https://www.apereo.org/projects/cas 1.上面一篇引用别人的分析方案介绍,来描述了下项目中遇到的问题,现在介绍本人怎么解决的 2.本 阅读全文
posted @ 2022-05-13 16:48 zhh 阅读(568) 评论(0) 推荐(0)
摘要: 当我们CAS Server准备好后,就要处理Client接入的问题,如果我们的Client服务是单机模式那没有任何问题,一旦放到集群环境下就会发生如下有意思的事情。 我前面说了CAS在授权回调时会做几件事,第一TG保存到Cookie,第二个保存ticketid对应的session关系以及sessio 阅读全文
posted @ 2022-05-13 16:44 zhh 阅读(190) 评论(0) 推荐(0)