Introduction to Patterns and Frameworks

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Patterns and Frameworks OO Patterns Douglas C. Schmidt Patterns and Frameworks Introduction to Patterns and Frameworks Motivation for Patterns and Frameworks Douglas C. Schmidt What is a Pattern? A Framework? Professor Department of EECS Pattern Categories [email protected] Vanderbilt University www.cs.wustl.edu/ schmidt/ (615) 343-8197 Pattern Examples Vanderbilt University 1 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Motivation for Patterns and Frameworks Overview of Patterns and Frameworks DX Developing software is hard BLOB Patterns support reuse of software architecture and design STORE Developing reusable – Patterns capture the static and dynamic structures and ATM software is even harder collaborations of successful solutions to problems that arise when LAN DIAGNOSTIC STATIONS building applications in a particular domain Proven solutions include patterns and frameworks Frameworks support reuse of detailed design and code ATM www.cs.wustl.edu/ schmidt/ – A framework is an integrated set of components that collaborate MAN CLUSTER patterns.html to provide a reusable architecture for a family of related ATM BLOB LAN STORE applications Together, design patterns and frameworks help to improve software MODALITIES CENTRAL quality and reduce development time (CT, MR, CR) BLOB STORE – e.g., reuse, extensibility, modularity, performance Vanderbilt University 2 Vanderbilt University 3 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Patterns of Learning Becoming a Chess Master First learn the rules Successful solutions to many areas of human endeavor are deeply rooted in patterns – e.g., names of pieces, legal movements, chess board geometry and orientation, etc. – In fact, an important goal of education is transmitting patterns of learning from generation to generation Then learn the principles – e.g., relative value of certain pieces, strategic value of center In a moment, we’ll explore how patterns are used to learn chess squares, power of a threat, etc. Learning to develop good software is similar to learning to play good However, to become a master of chess, one must study the chess games of other masters – Though the consequences of failure are often far less dramatic! – These games contain patterns that must be understood, memorized, and applied repeatedly There are hundreds of these patterns Vanderbilt University 4 Vanderbilt University 5 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Becoming a Software Design Master Design Patterns First learn the rules Design patterns represent solutions to problems that arise when – e.g., the algorithms, data structures and languages of software developing software within a particular context – i.e., “Pattern == problem/solution pair in a context” Then learn the principles – e.g., structured programming, modular programming, object Patterns capture the static and dynamic structure and collaboration oriented programming, generic programming, etc. among key participants in software designs – They are particularly useful for articulating how and why to However, to become a master of software design, one must study the designs of other masters resolve non-functional forces – These designs contain patterns that must be understood, Patterns facilitate reuse of successful software architectures and memorized, and applied repeatedly designs There are hundreds of these patterns Vanderbilt University 6 Vanderbilt University 7 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Example: Stock Quote Service Structure of the Observer Pattern Key Forces Intent SUBJECT REAL-TIME foreach o in observers loop MODEL o.update() MARKET 1. There may be many end loop Observer – Define a one-to-many DATA FEED observers 1Nupdate() dependency between Subject observers objects so that when one 2. Each observer may react notify() APPLICATION INDEPENDENT object changes state, all differently to the same attach(observer) detach(observer) APPLICATION its dependents are notification DEPENDENT notified and updated STOCK 3. The subject should be as Concrete automatically. QUOTES Observer decoupled as possible Concrete update() from the observers Subject subject OBSERVERS get_state() subject->get_state() i.e., allow observers to subject_state_ change independently of return subject_state_ the subject Vanderbilt University 8 Vanderbilt University 9 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Graphical Notation Collaboration in the Observer Pattern Concrete Concrete Concrete Variations Subject Observer 1 Observer 2 PROCESS “Push” architectures combine THREAD set_state() control flow and data flow notify() “Pull” architectures separate control flow from data flow update() OBJECT TEMPLATE : CLASS CLASS get_state() update() get_state() INHERITS CONTAINMENT Vanderbilt University 10 Vanderbilt University 11 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Design Pattern Descriptions Frameworks Main parts Pattern descriptions are often independent of 1. Frameworks are semi-complete applications 1. Name and intent programming language or Complete applications are developed by inheriting from, and 2. Problem and context implementation details instantiating parameterized framework components 3. Force(s) addressed Contrast with 2. Frameworks provide domain-specific functionality frameworks 4. Abstract description of structure and e.g., business applications, telecommunication applications, collaborations in solution window systems, databases, distributed applications, OS kernels 5. Positive and negative 3. Frameworks exhibit inversion of control at run-time consequence(s) of use i.e., the framework determines which objects and methods to 6. Implementation guidelines and invoke in response to events sample code 7. Known uses and related patterns Vanderbilt University 12 Vanderbilt University 13 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Class Libraries vs. Frameworks vs. Patterns Component Integration in Frameworks APPLICATION- LOCAL MATH SPECIFIC INVOCATIONS CLASSES Definition FUNCTIONALITY ADT Framework components are loosely CLASSES DATABASE Class libraries APPLICATION CLASSES CODE coupled via callbacks GUI EVENT GLUE NETWORK – Self-contained, “pluggable” ADTs CLASSES Callbacks allow independently developed LOOP CODE IPC CLASSES EVENT software components to be connected Frameworks (A) CLASS LIBRARY ARCHITECTURE HANDLER(S) together – Reusable, “semi-complete” EVENT callback() NETWORKING LOOP applications Callbacks provide a connection-point where ADT DISPATCHER generic framework objects can CLASSES GUI APPLICATION- CALL Patterns EVENT LOOP communicate with application objects INVOKES SPECIFIC BACKS FUNCTIONALITY EVENT EVENT SENSOR MATH LOOP – Problem, solution, context – The framework provides the common CLASSES SYSTEM template methods and the application DATABASE EVENT CODE LOOP provides the variant hook methods (B) FRAMEWORK ARCHITECTURE Vanderbilt University 14 Vanderbilt University 15 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Comparing Patterns and Frameworks Design Pattern Space Reactor/ProactorState Singleton Patterns and frameworks Strategy I/O Strategy Cached Virtual Creational patterns Framework Filesystem are highly synergistic – i.e., neither is – Deal with initializing and configuring classes and objects Asynchronous Completion Token Tilde ~ Expander /home/... subordinate Protocol Acceptor Structural patterns Handler Event Dispatcher Protocol Patterns can be Strategy – Deal with decoupling interface and implementation of classes and Filter characterized as more objects Adapter abstract descriptions of Behavioral patterns Concurrency frameworks, which are Protocol Pipeline Strategy Active Object implemented in a particular Framework Framework – Deal with dynamic interactions among societies of classes and Streams Service Configurator language objects In general, sophisticated frameworks embody dozens of patterns and patterns are often used to document frameworks Vanderbilt University 16 Vanderbilt University 17 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Creational Patterns Structural Patterns Factory Method Adapter – Method in a derived class creates associates – Translator adapts a server interface for a client Abstract Factory – Factory for building related objects Bridge – Abstraction for binding one of many implementations Builder – Factory for building complex objects incrementally Composite Prototype – Structure for building recursive aggregations – Factory for cloning new instances from a prototype Decorator Singleton – Decorator extends an object transparently – Factory for a singular (sole) instance Vanderbilt University 18 Vanderbilt University 19 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Structural Patterns (cont’d) Behavioral Patterns Facade Chain of Responsibility – Facade simplifies the interface for a subsystem – Request delegated to the responsible service provider Flyweight Command – Many fine-grained objects shared efficiently – Request as first-class object Proxy Interpreter – One object approximates another – Language interpreter for a small grammar Iterator – Aggregate elements are accessed sequentially Vanderbilt University 20 Vanderbilt University 21 OO Patterns Douglas C. Schmidt OO Patterns Douglas C. Schmidt Behavioral Patterns (cont’d) Behavioral Patterns (cont’d) Mediator Strategy – Mediator coordinates interactions between its associates – Abstraction for selecting one of many algorithms
Recommended publications
  • Ioc Containers in Spring
    301AA - Advanced Programming Lecturer: Andrea Corradini [email protected] http://pages.di.unipi.it/corradini/ AP-2018-11: Frameworks and Inversion of Control Frameworks and Inversion of Control • Recap: JavaBeans as Components • Frameworks, Component Frameworks and their features • Frameworks vs IDEs • Inversion of Control and Containers • Frameworks vs Libraries • Decoupling Components • Dependency Injection • IoC Containers in Spring 2 Components: a recap A software component is a unit of composition with contractually specified interfaces and explicit context dependencies only. A software component can be deployed independently and is subject to composition by third party. Clemens Szyperski, ECOOP 1996 • Examples: Java Beans, CLR Assemblies • Contractually specified interfaces: events, methods and properties • Explicit context dependencies: serializable, constructor with no argument • Subject to composition: connection to other beans – Using connection oriented programming (event source and listeners/delegates) 3 Towards Component Frameworks • Software Framework: A collection of common code providing generic functionality that can be selectively overridden or specialized by user code providing specific functionality • Application Framework: A software framework used to implement the standard structure of an application for a specific development environment. • Examples: – GUI Frameworks – Web Frameworks – Concurrency Frameworks 4 Examples of Frameworks Web Application Frameworks GUI Toolkits 5 Examples: General Software Frameworks – .NET – Windows platform. Provides language interoperability – Android SDK – Supports development of apps in Java (but does not use a JVM!) – Cocoa – Apple’s native OO API for macOS. Includes C standard library and the Objective-C runtime. – Eclipse – Cross-platform, easily extensible IDE with plugins 6 Examples: GUI Frameworks • Frameworks for Application with GUI – MFC - Microsoft Foundation Class Library.
    [Show full text]
  • Applying the Proactor Pattern to High-Performance Web Servers
    APPLYING THE PROACTOR PATTERN TO HIGH-PERFORMANCE WEB SERVERS James Hu Irfan Pyarali Douglas C. Schmidt [email protected],edu [email protected] [email protected] Department of Computer Science, Washington University St. Louis, MO 63130, USA This paper is to appear at the 10th International Confer- 1 INTRODUCTION ence on Parallel and Distributed Computing and Systems, IASTED, Las Vegas, Nevada, October 28-31, 1998. Computing power and network bandwidth on the Internet has increased dramatically over the past decade. High- speed networks (such as ATM and Gigabit Ethernet) and high-performance I/O subsystems (such as RAID) are be- ABSTRACT coming ubiquitous. In this context, developing scalable Web servers that can exploit these innovations remains a Modern operating systems provide multiple concurrency key challenge for developers. Thus, it is increasingly im- mechanisms to develop high-performance Web servers. portant to alleviate common Web server bottlenecks, such Synchronous multi-threading is a popular mechanism for as inappropriate choice of concurrency and dispatching developing Web servers that must perform multiple oper- strategies, excessive filesystem access, and unnecessary ations simultaneously to meet their performance require- data copying. ments. In addition, an increasing number of operating sys- Our research vehicle for exploring the performance im- tems support asynchronous mechanisms that provide the pact of applying various Web server optimization tech- benefits of concurrency, while alleviating much of the per- niques is the JAWS Adaptive Web Server (JAWS) [1]. JAWS formance overhead of synchronous multi-threading. is both an adaptive Web server and a development frame- This paper provides two contributions to the study of work for Web servers that runs on multiple OS platforms high-performance Web servers.
    [Show full text]
  • Evolution and Composition of Object-Oriented Frameworks
    Evolution and Composition of Object-Oriented Frameworks Michael Mattsson University of Karlskrona/Ronneby Department of Software Engineering and Computer Science ISBN 91-628-3856-3 © Michael Mattsson, 2000 Cover background: Digital imagery® copyright 1999 PhotoDisc, Inc. Printed in Sweden Kaserntryckeriet AB Karlskrona, 2000 To Nisse, my father-in-law - who never had the opportunity to study as much as he would have liked to This thesis is submitted to the Faculty of Technology, University of Karlskrona/Ronneby, in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Engineering. Contact Information: Michael Mattsson Department of Software Engineering and Computer Science University of Karlskrona/Ronneby Soft Center SE-372 25 RONNEBY SWEDEN Tel.: +46 457 38 50 00 Fax.: +46 457 27 125 Email: [email protected] URL: http://www.ipd.hk-r.se/rise Abstract This thesis comprises studies of evolution and composition of object-oriented frameworks, a certain kind of reusable asset. An object-oriented framework is a set of classes that embodies an abstract design for solutions to a family of related prob- lems. The work presented is based on and has its origin in industrial contexts where object-oriented frameworks have been developed, used, evolved and managed. Thus, the results are based on empirical observations. Both qualitative and quanti- tative approaches have been used in the studies performed which cover both tech- nical and managerial aspects of object-oriented framework technology. Historically, object-oriented frameworks are large monolithic assets which require several design iterations and are therefore costly to develop. With the requirement of building larger applications, software engineers have started to compose multiple frameworks, thereby encountering a number of problems.
    [Show full text]
  • Software Development a Practical Approach!
    Software Development A Practical Approach! Hans-Petter Halvorsen https://www.halvorsen.blog https://halvorsen.blog Software Development A Practical Approach! Hans-Petter Halvorsen Software Development A Practical Approach! Hans-Petter Halvorsen Copyright © 2020 ISBN: 978-82-691106-0-9 Publisher Identifier: 978-82-691106 https://halvorsen.blog ii Preface The main goal with this document: • To give you an overview of what software engineering is • To take you beyond programming to engineering software What is Software Development? It is a complex process to develop modern and professional software today. This document tries to give a brief overview of Software Development. This document tries to focus on a practical approach regarding Software Development. So why do we need System Engineering? Here are some key factors: • Understand Customer Requirements o What does the customer needs (because they may not know it!) o Transform Customer requirements into working software • Planning o How do we reach our goals? o Will we finish within deadline? o Resources o What can go wrong? • Implementation o What kind of platforms and architecture should be used? o Split your work into manageable pieces iii • Quality and Performance o Make sure the software fulfills the customers’ needs We will learn how to build good (i.e. high quality) software, which includes: • Requirements Specification • Technical Design • Good User Experience (UX) • Improved Code Quality and Implementation • Testing • System Documentation • User Documentation • etc. You will find additional resources on this web page: http://www.halvorsen.blog/documents/programming/software_engineering/ iv Information about the author: Hans-Petter Halvorsen The author currently works at the University of South-Eastern Norway.
    [Show full text]
  • Everyware Software Framework
    Device Application Framework Everyware Software Framework • Quickly develop your application using M2M/IoT Java packages and services • Build solid, secure, network-centric embedded devices leveraging field proven networking services • Remotely configure and upgrade your application throughout its lifecycle • Take advantage of a solid queuing system for back-end connectivity • Bring your product to market quickly and deterministically while reducing efforts and risks FEATURES Eurotech Everyware Software Framework (ESF) is a device application framework specialized to build machine-to-machine (M2M) or Internet of Things (IoT) applications. ESF provides a highly cost-effective, flexible and IT- oriented framework to build the new generation of connected, smart devices and applications. ESF enables developers to concentrate on the application by providing a set of field proven M2M/IoT building blocks like: • Device abstraction: provides a complete Java consistent software abstraction across all the hardware interfaces like WiFi, Cellular, GPS, Serial, USBs, CAN ports, Digital I/Os, Analog I/Os… • Security: Provides a full set of security features across all layers of the framework (gateway middleware): Authentication, certificate management , secure execution environment, signed bundles, encrypted messaging and firewall. • Gateway basic service: offers ready to use services like time synchronization, serial port configuration, application monitoring, cellular management, Ethernet management… • Network configuration: IP, DHCP, NAT, NTP, and Firewall are just some of the networking services that can be easily configured. • Connectivity and Delivery: default services include sophisticated queuing, always-on connection and self-restoring of the connection. • Field protocols: field-tested industrial, transportation and healthcare protocols are available through Java APIs. Support for custom protocols design.
    [Show full text]
  • Agent-Based Modeling with the JABM Toolkit
    Noname manuscript No. (will be inserted by the editor) Agent-Based Modeling with the JABM Toolkit Steve Phelps Centre for Computational Finance and Economic Agents (CCFEA) [email protected] the date of receipt and acceptance should be inserted later Abstract In many areas of science, agent-based models have become increasingly important. These models are often sufficiently complex that deriving closed-form solutions for quantitative aspects of their macroscopic behaviour is often impracti- cal if not impossible, and hence they are often analysed using discrete-event simu- lation and Monte-Carlo methods. In this paper we give an overview of agent-based modeling with an emphasis on its application to multi-agent systems research, and show how a software design pattern called \dependency injection" can be used to implement highly configurable simulation models which are able to incorporate various assumptions about agents' rationality and learning. We then show how these ideas have been implemented in the Java Agent-Based Modelling (JABM) toolkit | an open-source framework for building agent-based models. 1 Introduction In this paper we describe practical aspects of developing agent-based simulation models with particular emphasis on agent-based computational economics and work carried out within the trading-agent design and analysis community. We introduce a new software framework for building agent-based models | the Java Agent Based Modeling (JABM) toolkit1. Work on JABM arose out of an earlier project | Java Auction Simulator API (JASA)2 | which was designed as a toolkit for performing experiments in Agent-based Computational Economics (ACE)3 and was subsequently used as the basis of the JCAT software used to run the CAT tournament which is part of the Trading Agent Competition (Cai et al, 2009).
    [Show full text]
  • Smart-EIS: an End to End Enterprise Information Systems Framework
    Journal of Computer Science Original Research Paper Smart-EIS: An End to End Enterprise Information Systems Framework 1Jalal Kiswani, 2Muhanna Muhanna and 3Abdallah Qusef 1Department of Computer Science and Engineering, University of Nevada, Reno, USA 2Department of Creative Media, Luminus Technical University, Amman, Jordan 3Department of Software Engineering, Princess Sumaya University for Technology, Amman, Jordan Article history Abstract: Enterprise Information Systems (EIS) are widely and extensively Received: 29-08-2018 used in many domains such as banking, telecommunication, e-commerce Revised: 19-11-2018 and government. Although several research studies and investigations were Accepted: 22-12-2018 performed that explore the importance of EIS, only a few studies have focused on effective and efficient end-to-end approaches to developing Corresponding author: Abdallah Qusef such systems. In this article, a proposed software development framework Department of Software (Smart-EIS) is presented. The primary objective of Smart-EIS is making Engineering, Princess Sumaya the development of high-quality EIS more effective and efficient. In University for Technology, particular, it aims to reduce the development cost and to provide built-in Amman, Jordan transparent quality, security, performance and user-experience features. A Email: [email protected] comprehensive review of the traditional EIS is presented. This includes a discussion of the characteristics and patterns of such systems, the layered architectural patterns and the main components of these systems. The working methodology for the work discussed in this article depends on dynamically construct the common and general aspects of EIS at runtime. The methodology starts with extracting metadata models from the traditional architectural and components patterns.
    [Show full text]
  • Application Programming Interface (API) Is a Specification Intended to Be Used As an Interface by Software Components to Communicate with Each Other
    Application programming interface 1 Application programming interface An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other. An API may include specifications for routines, data structures, object classes, and variables. An API specification can take many forms, including an International Standard such as POSIX or vendor documentation such as the Microsoft Windows API, or the libraries of a programming language, e.g. Standard Template Library in C++ or Java API. An API differs from an application binary interface (ABI) in that the former is source code based while the latter is a binary interface. For instance POSIX is an API, while the Linux Standard Base is an ABI.[1] Language used An API can be: • language-dependent, meaning it is only available by using the syntax and elements of a particular language, which makes the API more convenient to use. • language-independent, written so that it can be called from several programming languages. This is a desirable feature for a service-oriented API that is not bound to a specific process or system and may be provided as remote procedure calls or web services. For example, a website that allows users to review local restaurants is able to layer their reviews over maps taken from Google Maps, because Google Maps has an API that facilitates this functionality. Google Maps' API controls what information a third-party site can use and how they can use it. The term API may be used to refer to a complete interface, a single function, or even a set of APIs provided by an organization.
    [Show full text]
  • Applying Dependency Injection to Agent-Based Modeling: The
    Applying Dependency Injection to Agent-Based Modeling: the JABM Toolkit Steve Phelps Centre for Computational Finance and Economic Agents (CCFEA) [email protected] August 31, 2012 Abstract In many areas of science, agent-based models have become increasingly important. These models are often sufficiently complex that deriving closed-form solutions for quantitative aspects of their macroscopic behaviour is often impractical if not impossible. Thus these models are often analysed using Monte-Carlo simulation. Object-oriented programming languages are naturally suited to implementing such models. However, Monte-Carlo methods impose some subtle requirements: we must run the same program very many times with randomly-drawn values of variables in the simulation being drawn from probability distributions, taking great care to ensure that each run is not contaminated with state from previous runs. Typically these problems are tackled by model-specific application code residing in the objects representing individuals in the model. However, this approach is not declarative and leads to cross- contamination between code representing experiments or treatments and code representing the model itself. In this paper we give an overview of agent-based modelling with an emphasis on its application to multi-agent systems research, and show how a design pattern called \dependency injection" can be used to implement highly configurable simulation models which are able to incorporate various assumptions about agents' rationality and learning. 1 Introduction In this paper we describe practical aspects of developing agent-based simulation models with particular emphasis on agent-based computational economics and work carried out within the trading-agent design 1 and analysis community.
    [Show full text]
  • Display-Independent Software Framework, High-Speed Rendering Electronics, and Several New Displays
    Spatial 3-D Infrastructure: Display-Independent Software Framework, High-Speed Rendering Electronics, and Several New Displays Won-Suk Chun, Joshua Napoli, Oliver S. Cossairt, Rick K. Dorval, Deirdre M. Hall, Thomas J. Purtell II, James F. Schooler, Yigal Banker, Gregg E. Favalora* Actuality Systems, Inc., 25 Corporate Dr. Ste. 300, Burlington, MA USA 01803 ABSTRACT We present a software and hardware foundation to enable the rapid adoption of 3-D displays. Different 3-D displays – such as multiplanar, multiview, and electroholographic displays – naturally require different rendering methods. The adoption of these displays in the marketplace will be accelerated by a common software framework. The authors designed the SpatialGL API, a new rendering framework that unifies these display methods under one interface. SpatialGL enables complementary visualization assets to coexist through a uniform infrastructure. Also, SpatialGL supports legacy interfaces such as the OpenGL API. The authors’ first implementation of SpatialGL uses multiview and multislice rendering algorithms to exploit the performance of modern graphics processing units (GPUs) to enable real-time visualization of 3-D graphics from medical imaging, oil & gas exploration, and homeland security. At the time of writing, SpatialGL runs on COTS workstations (both Windows and Linux) and on Actuality’s high- performance embedded computational engine that couples an NVIDIA GeForce 6800 Ultra GPU, an AMD Athlon 64 processor, and a proprietary, high-speed, programmable volumetric frame buffer that interfaces to a 1024 × 768 × 3 digital projector. Progress is illustrated using an off-the-shelf multiview display, Actuality’s multiplanar Perspecta Spatial 3D System, and an experimental multiview display. The experimental display is a quasi-holographic view- sequential system that generates aerial imagery measuring 30 mm x 25 mm x 25 mm, providing 198 horizontal views.
    [Show full text]
  • Introduction to E-Commerce Combining Business and Information Technology
    MARTIN KÜTZ INTRODUCTION TO E-COMMERCE COMBINING BUSINESS AND INFORMATION TECHNOLOGY 2 Introduction to E-Commerce: Combining Business and Information Technology 1st edition © 2016 Martin Kütz & bookboon.com ISBN 978-87-403-1520-2 Peer review by Prof. Dr. Michael Brusch, Fachbereich 6, Hochschule Anhalt and Prof. Dr. Corinna V. Lang, Fachbereich 2, Hochschule Anhalt 3 INTRODUCTION TO E-COMMERCE CONTENTS CONTENTS Table of abbreviations 7 1 Basics and definitions 15 1.1 The term “E-Commerce” 16 1.2 Business models related to E-Commerce 24 1.3 Technical and economic challenges 34 1.4 Exercises 35 2 Frameworks and architectures 37 2.1 Actors and stakeholders 37 360° 2.2 Fundamental sales process 39 2.3 Technological elements 44 2.4 Exercises 360° 61 thinking. thinking. 360° thinking . 360° thinking. Discover the truth at www.deloitte.ca/careers Discover the truth at www.deloitte.ca/careers © Deloitte & Touche LLP and affiliated entities. Discover the truth at www.deloitte.ca/careers © Deloitte & Touche LLP and affiliated entities. © Deloitte & Touche LLP and affiliated entities. Discover the truth at www.deloitte.ca/careers 4 © Deloitte & Touche LLP and affiliated entities. INTRODUCTION TO E-COMMERCE CONTENTS 3 B2C business 62 3.1 The process model and its variants 62 3.2 The pricing challenge 77 3.3 The fulfilment challenge 79 3.4 The payment challenge 80 3.5 B2C-business and CRM 80 3.6 B2C software systems 81 3.7 Exercises 85 4 B2B business 86 4.1 The process model and its variants 86 4.2 B2B software systems 98 4.3 Exercises 106 5 Impact
    [Show full text]
  • A Design Framework for Highly Concurrent Systems
    A Design Framework for Highly Concurrent Systems Matt Welsh, Steven D. Gribble, Eric A. Brewer, and David Culler Computer Science Division University of California, Berkeley Berkeley, CA 94720 USA mdw,gribble,brewer,culler @cs.berkeley.edu f g Abstract In addition to high concurrency, Internet services have three other properties which necessitate a fresh Building highly concurrent systems, such as large-scale look at how these systems are designed: burstiness, Internet services, requires managing many information flows continuous demand, and human-scale access latency. at once and maintaining peak throughput when demand ex- Burstiness of load is fundamental to the Internet; deal- ceeds resource availability. In addition, any platform sup- ing with overload conditions must be designed into the porting Internet services must provide high availability and be able to cope with burstiness of load. Many approaches system from the beginning. Internet services must also to building concurrent systems have been proposed, which exhibit very high availability, with a downtime of no generally fall into the two categories of threaded and event- more than a few minutes a year. Finally, because ac- driven programming. We propose that threads and events cess latencies for Internet services are at human scale are actually on the ends of a design spectrum, and that and are limited by WAN and modem access times, an the best implementation strategy for these applications is important engineering tradeoff to make is to optimize somewhere in between. for high throughput rather than low latency. We present a general-purpose design framework for build- ing highly concurrent systems, based on three design com- Building highly concurrent systems is inherently dif- ponents | tasks, queues, and thread pools | which encapsu- ficult.
    [Show full text]