Skip to Content
语义软件设计
book

语义软件设计

by Eben Hewitt
September 2022
Beginner to intermediate
321 pages
4h 50m
Chinese
China Electric Power Press Ltd.
Content preview from 语义软件设计
应用程序
175
需要对数据进行非规范化处理,将非规范化后的数据作为“记录系统”表的一
种辅助工具。最后,利用分布式缓存。
6.
交付媒体应使用
Akamai
AWS CloudFront
等内容交付网络(
Content Delivery
Network
,简
CDN
)。要想成为响应速度非常快的系统,应当做到(理想情况下)
服务器永远不会被访问,网络服务器和数据库也是如此。
同样,以上我们并没有列出所有性能调优技术。本书无法详尽地讨论性能调优。当然,
你需要正确地设计系统,使用正确级别以及类型的硬件等。如果这些工作没有做好,
那么再怎么压缩
CSS
文件也没有用。这些都是非常简单、基本、容易实现的工作。
不过,有了坚实的设计,哪怕只做这些基本的工作,至少也是一个良好的开端。
7.19 API
与实现的分离
通常,团队都知道应该将
API
与实现分开。但有时由于截止日期紧迫而日夜赶工,
他们可能会简单地创建一个接口,然后在同一个包的某个类中实现接口。这也会成
为一种习惯,因为
.NET
Java
等语言就会在同一个包中同时提供接口和实现。例如,
List
(接口)和
ArrayList
List
的实现)都在
java.util
中。当然,我们完全可
以在自己的包中创建
List
实现,所以这些语言这样做是完全合理的。但更整洁的分
离可以提高可扩展性和可移植性。
在设计系统时,第一步,将子系统的所有接口放入同一个包中,然后将这个包放入
可构建的
JAR
或二进制文件。第二步,将这个二进制文件作为依赖项,单独新建一
个项目,并将实现放入其中。这样做是要表明,第二步的实现并不是标准实现 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

金融中的人工智能

金融中的人工智能

Posts & Telecom Press, Jeffrey Ng, Subhash Shah
移动端机器学习实战

移动端机器学习实战

Posts & Telecom Press, Karthikeyan NG
精通数据科学算法

精通数据科学算法

Posts & Telecom Press, David Natingga

Publisher Resources

ISBN: 9787519870300