什么止咳效果最好最快| 女为什么字| 血液循环不好吃什么药| 属龙本命佛是什么佛| 男人什么时候精子最强| 男性霉菌感染用什么药| 嘴唇干燥是什么原因| golden是什么牌子| 木薯粉是什么东西| 朝鲜人一日三餐吃什么| 受精卵着床有什么反应| 草酸是什么| 眼睛痒用什么眼药水好| 筷子在古代叫什么| 婴儿胎毛什么时候剃最好| 迪化是什么意思| 沙棘对肝脏有什么好处| 清洁度2度是什么意思| 过敏性紫癜不能吃什么| 周杰伦属什么| 尿电导率低是什么意思| 梵蒂冈为什么没人敢打| 屁股两边疼是什么原因| 焦虑症吃什么中成药能根治| 什么是针灸| 95511是什么号码| 冰乙酸是什么| 满族八大碗都有什么菜| 室上性早搏是什么意思| 肝实质回声欠均匀是什么意思| 男人眉骨高代表什么| 尽兴是什么意思| 梦见捡到很多钱是什么意思| 梦见钱是什么意思| 语重心长是什么意思| 钮钴禄什么意思| 天麻是什么样子| 薄荷叶泡水喝有什么好处| 氟哌酸是什么药| ptsd是什么病| 胃灼热烧心吃什么药| 绿茶有什么好处| 鱼扣是鱼的什么部位| 干咳吃什么药最有效| 肝火旺吃什么药| 宁五行属性是什么| 计提工资是什么意思| 梦到车坏了是什么意思| 减肥期间晚上可以吃什么| 王源粉丝叫什么| 梦见办丧事是什么兆头| 着床出血是什么样子的| 灏字五行属什么| 右边脑袋疼是什么原因| 属牛的守护神是什么菩萨| 立flag是什么意思| 失眠缺什么维生素| 什么牌子的充电宝好| 紫外线过敏用什么药膏| 易孕期是什么时候| 83年五行属什么| 嘴唇有点发黑是什么原因引起的| 飞机用什么燃油| 指甲分层是什么原因| 后脑勺胀痛什么原因| 美国为什么支持以色列| 2点是什么时辰| 血管变窄吃什么能改善| 喝牛奶不能和什么一起吃| 惰性是什么意思| 天为什么会下雨| 腿水肿是什么原因| 牛肉和什么蔬菜搭配好| 梦见干活是什么意思| 霍光和卫子夫什么关系| 血液凝固快是什么原因| cyan是什么颜色| 和可以组什么词| 用什么药可以缩阴紧致| 出汗多是什么原因| 粉红粉红的什么| 黄花菜都凉了是什么意思| 七手八脚是什么意思| 踏雪寻梅什么意思| gc是什么激素| 肝不好吃什么水果| 王字旁的字跟什么有关| 火龙果什么时候吃最好| 膝盖疼痛是什么原因| 流量mb是什么意思| 无纺布是什么材料做的| 一个日一个处一个口念什么| 胃充盈欠佳是什么意思| 什么症状吃保心丸| 醛固酮高有什么危害| 早餐吃什么不会胖| 断头路是什么意思| 满月送什么礼物好| 尾盘拉升意味着什么| 7月份适合种什么菜| 椎管狭窄吃什么药| 锆石是什么| ts和cd有什么区别| mi医学上是什么意思| 颞下颌关节炎吃什么药| 皮脂腺囊肿用什么药膏| 农历3月是什么星座| 一学年是什么意思| 白带发黄是什么妇科病| 双休什么意思| 什么姿势最深| 氯雷他定为什么比西替利嗪贵| 脱口秀是什么意思| 心悸症状是什么感觉| 没收个人全部财产是什么意思| 2月24日什么星座| 痹症是什么意思| 魏征字什么| 经常打哈欠是什么原因| 龙的幸运色是什么颜色| 打乙肝疫苗需要注意什么| 嘴发酸是什么原因引起| 单身贵族什么意思| 同化什么意思| 派出所所长是什么级别| 女人每天吃什么抗衰老| 脾胃虚寒吃什么水果好| 佑是什么意思| 但爱鲈鱼美的但是什么意思| 小儿舌苔白厚什么原因| rapper什么意思| 私生饭什么意思| 血小板是什么意思| b型和ab型生的孩子是什么血型| 女生喜欢什么姿势| 乔迁之喜送什么| 吃牛油果有什么好处和坏处| 红鸡蛋用什么染| 笑气是什么气体| scr是什么意思| 脑梗输什么液效果最好| 轩尼诗是什么酒| 手发麻发木是什么病的前兆| 杨枝甘露是什么意思| 直言不讳是什么意思| 对公转账是什么意思| 把头是什么意思| 急性咽炎吃什么药| yesido是什么意思| 阳痿早泄用什么药| 查钙含量做什么检查| 中医心脉受损什么意思| 黄色五行属什么| 网球大满贯什么意思| 一直鼻塞是什么原因| 为什么一般不检查小肠| 女性前列腺叫什么| 女性多吃什么滋补卵巢| 什么是冷战| 字如其人什么意思| 偏光是什么意思| 左氧氟沙星治什么病| 烟囱是什么意思| 水瓶是什么象星座| 人为什么要火化| 脖子下面的骨头叫什么| 意味什么| 左手食指麻木是什么原因引起的| 木耳菜又叫什么菜| 肌酸粉有什么作用| 粽子的叶子是什么叶| 新疆有什么特产| 为什么来姨妈会拉肚子| 椰子水是什么颜色| 为什么现在不建议输液| 早晚体重一样说明什么| 什么叫胰岛素抵抗| 二级b超是检查什么| 黄色裤子配什么上衣| 亲和力是什么意思| 做梦梦见前男友是什么意思| 什么的帽子| 气血不足吃什么食物最好| 口臭药店买什么药吃| 什么叫阴虚| 蟹爪兰什么时候开花| 脸过敏要注意什么| 牛肉不能和什么食物一起吃| 桉字五行属什么| 宝宝半夜咳嗽是什么原因| 吃茄子有什么坏处| 白细胞低有什么危险| mafia是什么意思| yl是什么牌子| 木薯粉是什么做的| 崩盘是什么意思| 吃完饭恶心是什么原因| 为什么拉尿会刺痛| 尿管型偏高是什么原因| 淋巴滤泡增生用什么药能彻底治愈| 结婚送什么礼物最合适| 预授权是什么意思| 撕裂是什么意思| 一个巾一个占念什么| hb医学上是什么意思| 红色加绿色等于什么颜色| 奥利司他排油是什么油| 媾什么意思| 百草枯是什么| 裤裙搭配什么上衣好看| 枪灰色是什么颜色| 白色舌苔厚是什么原因| 什么药治便秘| 霍山黄芽属于什么茶| 胃疼买什么药| hpv去医院挂什么科| 知了的学名叫什么| 紫外线过敏用什么药膏| 梦是什么| 水痘能吃什么食物| 画画可以画什么| 隐血是什么意思| pi什么意思| 什么的哭声| 猪展是什么| 结婚30年是什么婚姻| 宝宝咳嗽吃什么药| 宰相是什么意思| 尿路感染检查什么项目| 白色蛇是什么蛇| 碳元素是什么| 十二指肠憩室是什么意思| 1947年属猪的是什么命| 刮宫后需要注意什么| 高血压中医叫什么病| 后背疼是什么病| 十一月份属于什么星座| 肚子咕咕叫吃什么药| 山楂可以和什么一起泡水喝| 肺部微结节是什么意思| 肾囊肿挂什么科| 生理曲度变直什么意思| 伯父是什么关系| 回族不吃什么| 溶血是什么意思| roca是什么品牌| 为什么手术前要禁食禁水| 蓝脸的窦尔敦盗御马是什么歌| 孕妇用什么驱蚊最好| 海参是补什么的| 象牙有什么作用与功效| 鼻子无故出血什么原因| 补办港澳通行证需要什么材料| 我国计划生育什么时候开始| 吃什么油最健康排行榜| 0是什么| 什么的小姑娘| 什么原因引起荨麻疹| 相濡以沫什么意思| 什么叫入伏| 经常生闷气会得什么病| 佝偻病什么症状| 稀字五行属什么| hr医学上什么意思| 百度
BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Apple Completes Migration of Key Ecosystem Service to Swift, Gains 40% Performance Uplift

熬夜伤什么

Listen to this article -  0:00

Apple has migrated its global Password Monitoring service from Java to Swift, achieving a 40% increase in throughput and significantly reducing memory usage—freeing up nearly 50% of previously allocated Kubernetes capacity. 

In a recent post, Apple engineers detailed how the rewrite helped the service scale to billions of requests per day while improving responsiveness and maintainability. The team cited lower memory overhead, improved startup time, and simplified concurrency as key reasons for choosing Swift over further JVM optimization.

Swift allowed us to write smaller, less verbose, and more expressive codebases (close to 85% reduction in lines of code) that are highly readable while prioritizing safety and efficiency.

Apple's Password Monitoring service, part of the broader Password app's ecosystem, is responsible for securely checking whether a user's saved credentials have appeared in known data breaches, without revealing any private information to Apple. It handles billions of requests daily, performing cryptographic comparisons using privacy-preserving protocols.

This workload demands high computational throughput, tight latency bounds, and elastic scaling across regions. Traffic fluctuates significantly over the course of a day, with regional peaks differing by up to 50%. To accommodate these swings, the system must quickly spin up or wind down instances while maintaining low-latency responses.

Apple's previous Java implementation struggled to meet the service's growing performance and scalability needs. Garbage collection caused unpredictable pause times under load, degrading latency consistency. Startup overhead—from JVM initialization, class loading, and just-in-time compilation, slowed the system's ability to scale in real time. Additionally, the service's memory footprint, often reaching tens of gigabytes per instance, reduced infrastructure efficiency and raised operational costs.

Originally developed as a client-side language for Apple platforms, Swift has since expanded into server-side use cases. Apple's engineering team selected Swift not just for its ecosystem alignment, but for its ability to deliver consistent performance in compute-intensive environments. 

The rewrite also used Vapor, a popular Swift web framework, as a foundation. Additional custom packages were implemented to handle elliptic curve operations, cryptographic auditing, and middleware specific to the Password Monitoring domain.

Swift's deterministic memory management, based on reference counting rather than garbage collection (GC), eliminated latency spikes caused by GC pauses. This consistency proved critical for a low-latency system at scale. After tuning, Apple reported sub-millisecond 99.9th percentile latencies and a dramatic drop in memory usage: Swift instances consumed hundreds of megabytes, compared to tens of gigabytes with Java.

Startup times also improved. Without JVM initialization overhead or JIT warm-up, Swift services could cold-start more quickly, supporting Apple's global autoscaling requirements.

Apple's migration reflects a broader trend: the shift toward performance-oriented languages for services operating at extreme scale. Meta has a long history with Rust from hyper-performant Source control solutions to programming languages for the blockchain. Netflix introduced Rend, a high-performance proxy written in Go, to take over from a Java-based client interacting with Memcached. AWS increasingly relies on Rust in services where deterministic performance and low resource usage improve infrastructure efficiency.

While this isn't a sign that Java and similar languages are in decline, there is growing evidence that at the uppermost end of performance requirements, some are finding that general-purpose runtimes no longer suffice.

 

About the Author

Rate this Article

Adoption
Style

BT
陈赫什么星座 肉苁蓉有什么功能 舌苔厚黄吃什么药最好 国保大队是干什么的 舌炎吃什么药效果最好
什么样的野花 手术后为什么要平躺6小时 六月初二是什么日子 正部级是什么级别 什么是鼻窦炎
湘女多情是什么意思 crp是什么检查 脓是什么 卧室放什么花最好健康 女人被插入是什么感觉
米字五行属什么 甲亢吃什么好的更快 清理鱼缸粪便用什么鱼 内科是什么 尿液茶色是什么原因
孕妇便秘吃什么最快排便hcv9jop0ns5r.cn 盆腔积液吃什么药好jiuxinfghf.com 1978年属什么的hcv9jop1ns5r.cn 79岁属什么hcv9jop6ns3r.cn 胃泌素瘤是什么意思liaochangning.com
艾草泡脚有什么好处gangsutong.com 干眼症用什么药最好hcv8jop3ns0r.cn 主动脉硬化什么意思hcv8jop4ns0r.cn 五月十九日是什么星座hcv9jop4ns8r.cn 唐氏是什么意思wmyky.com
赊账是什么意思hcv9jop4ns2r.cn 倒拔垂杨柳是什么意思hcv8jop8ns8r.cn 房早有什么危害qingzhougame.com 胰岛素高是什么原因hcv8jop8ns0r.cn 老公工作劳累炖什么汤hcv9jop7ns1r.cn
尿道炎症状吃什么药sanhestory.com 湖南湖北以什么湖为界hcv9jop2ns9r.cn 高颜值是什么意思hcv8jop8ns1r.cn 诸侯国是什么意思aiwuzhiyu.com 早上五六点是什么时辰hcv9jop1ns7r.cn
百度