Difference between an architecture and a framework [closed]

A terminology question appeared when I was comparing EJB 3 and Spring.

Wikipedia says that

Enterprise JavaBeans (EJB) is a managed, server-side component
architecture for modular construction of enterprise applications.

and also

The Spring Framework is an open source application framework and
inversion of control container for the Java platform.

“EJB 3 in Action” suggests that

Together, the components, or EJBs, and the container can be viewed as
a framework that provides valuable services for enterprise application
development.

Is any framework an architecture? If not, what is the difference between these terms? Could EJB be considered a framework?

1

An architecture is the the abstract design concept of an application. Basically, a structure of the moving parts and how they’re connected.

A framework is a pre-built general or special purpose architecture that’s designed to be extended.

If an architecture is the design of a structure, a framework is the architecture of a foundation. Frameworks are specifically designed to be built on or extended.

Some frameworks deal primarily with scaffolding. Meaning, they provide pre-built modules that are easy to use/extend to save the developer from having to create them from scratch. For instance, most MVC web frameworks (ex django, pylons, codeigniter) make it much easier to implement sessions, database connections, templating, etc…

Other frameworks deal primarily with augmenting the capabilities of the language itself, filling in what some may consider to be ‘missing pieces’. They add features that come from other languages, synctatic sugar, or extend the language. The Underscore lib is a perfect example of this. It doesn’t do much to assist in building applications, it’s primary purpose is to extend the core functionality of javascript.

Some frameworks exist to add new features to a language, or re-hash existing capabilities in a new way. For instance, jQuery took the — previously painful — process of querying the HTML DOM and made it trivial. They also provided a means to write cross browser compatible AJAX requests. While jQuery appears to add a new style of syntax, behind the scenes it runs on vanilla JavaScript. AngularJS is another framework that leverages JS/HTML in new and interesting ways using vanilla JS.

In your case. Spring and EJB are both scaffolding MVC frameworks, each with their own trade-offs.

Generally speaking, architecture is an abstract plan that can include design patterns, modules, and their interactions. Frameworks are architected “physical” structures on which you build your application.

Your architecture may incorporate multiple frameworks. And multiple layers of framework. At each layer, the “architecture” is the oft-documented “thinking” from which the layer is built. The frameworks are the “physical” components used to build it.


When you call a target environment an “architecture”, you’re referring to the design implications on your software. When you call it a “framework”, you’re referring to the functionality it gives you.

In software, a Framework is a software module or set of modules that supports a generic programming concept by abstracting common functionality (code in a software sense) into a reusable format.

An Architecture is an assembly of systems that solves business needs. According to TOGAF

The definition of an architecture used in ANSI/IEEE Std 1471-2000 is:

“The fundamental organization of a system, embodied in its components,
their relationships to each other and the environment, and the
principles governing its design and evolution.”

In itself TOGAF is a framework because it abstracts the reusable parts of architecture into a reusable format. It does so through documentation instead of code.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật