Working with Asynchrony Generically: A Tour of C++ Executors
TRANSITIONING EXECUTION CONTEXT namespace ex = std::execution; ex::sender auto accept_request(); ex::sender auto process_request(request_t); extern unifex::static_thread_pool low_latency; extern unifex::static_thread_pool ex::on(low_latency.get_scheduler(), accept_request()) | ex::transfer(workers.get_scheduler()) | ex::then([](auto request) { process_request(request); }) | unifex::repeat_effect(); } Accept TRANSITIONING EXECUTION CONTEXT namespace ex = std::execution; ex::sender auto accept_request(); ex::sender auto process_request(request_t); extern unifex::static_thread_pool low_latency; extern unifex::static_thread_pool0 码力 | 121 页 | 7.73 MB | 5 月前3应用 waPC (rust) 做软件测试工具
Procedures Call waPC 协议标准化了本机代码调用 WebAssembly 和 WebAssembly 调用本机代码的通信 (messaging) 和 错误处理 (error handling) 。 什么是 waPC? WASM 外部函数 接口 FFI Input type Return type Platform 底层 I32 I32 Unknown waPC String::from(“localhost:8000"); req.HttpScheme = String::from("http"); let request = serde_json::to_string(&req)?; Ok(request.as_bytes().to_vec()) } fn do_nothing(msg: &[u8]) -> CallResult { Ok(msg pub UrlPath: String, } ResA: Response corresponding to unmodified request ResB: Response corresponding to modified request • 模拟数据规则 • 自动化测试 • https://github.com/wasmmock/ wasm_mock_server • 用0 码力 | 30 页 | 2.50 MB | 1 年前3Secure your microservices with istio step by step
Access productpage #IstioCon Istio Identity Istiod Istio Agent Envoy 1. Start Envoy 2. Request Cert (SDS)) 3. CSR Auth: JWT 4. Cert signed with SPIFFE format Istio-proxy CA server #IstioCon server side mTLS mTLS in Istio - PeerAuthenticati on Using ingress port and ingress host to send request: can access reviews-v1, reviews-v2 and reviews-v3 can reach v2 as peer-authentication only defines client side mTLS mTLS in Istio - Destination rule Using ingress port and ingress host to send request: can access reviews-v1, reviews-v3 can not access reviews-v2 since we have enabled ISTIO_MUTUAL0 码力 | 34 页 | 67.93 MB | 1 年前3KubeCon2020/大型Kubernetes集群的资源编排优化
Node2 Kube-scheduler Pod Request Load Level Request Load Level Real Load Level Real Load Level Assigned to Node2 The native K8S scheduling is based on the resource request of Pod. However, in many resource requests but low load. Dynamic-Scheduler Node1 Node2 Kube-scheduler Pod Request Load Level Request Load Level Real Load Level Real Load Level Assigned to Node1 Dynamic-scheduler Node10 码力 | 27 页 | 3.91 MB | 1 年前3C++20: An (Almost) Complete Overview
std::stop_token Supports actively checking for a stop request Can be used with condition_variable_any std::stop_source Used to request a thread to stop execution Stop requests are visible while (!token.stop_requested()) { //... } } }; //... job.request_stop(); // auto source { job.get_stop_source() }; // source.request_stop() // auto token { job.get_stop_token() }; // bool b { token0 码力 | 85 页 | 512.18 KB | 5 月前3servlet mechanism
service() doGet() doPost() Get Request Post Request Response Response Web Server HttpServlet subclass 注意: 方法由 HttpServlet 的子类实现0 码力 | 1 页 | 39.21 KB | 1 年前3C++高性能并行编程与优化 - 课件 - 02 现代 C++ 入门:RAII 内存管理
里有详细的作业要求和说明。请按要求修改其中的代码,使得双向 链表类 List 的拷贝构造函数能正常工作,且内存能够安全释放。 • 通过 pull request 提交你的作业,这样我可以通过 diff 页面清楚地看到你的改动。 • 什么事 pull request ?还是善用搜索引擎,这是作业的一部分( x 感谢观看! by 彭于斌( github@archibate ) 录播: https://space0 码力 | 96 页 | 16.28 MB | 1 年前3Building Robot Apps
WowWee Gotcha #1 Strange conversion to hex to string :s Reading data Add Listener (Receive DS) Request Data (Send DS) onNotify Reading commands Protocol Reading data Gotcha #2 aka Are you for real0 码力 | 18 页 | 14.80 MB | 1 年前3绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能
-31% not available NodePort +64% -47% +22% Test result • Perf shows number of instructions per request drops by 38% IPVS-BPF IPVS 0 20000 40000 60000 80000 100000 120000 140000 160000 1800000 码力 | 24 页 | 1.90 MB | 1 年前3C++20 STL Features: 1 Year of Development on GitHub
Autolinks • DevCom-724444, LLVM-41915, LWG-3080, WG21-P120944 Status Chart45 Status Chart: Pull Request Age0 码力 | 45 页 | 702.09 KB | 5 月前3
共 10 条
- 1