220 likes | 394 Views
模块设计. 2008-10-25. Applications. PACA. ……. Portal. Web Server. Ajax. JS. PHP. Application Server. Micro Blog. Digg. Short Message. SDPC. ePKP. BI. UUMS. Message Service. Schedule. QoS. Relationship. Account. ACL. Auth. Profile. Behavior. Rank. Cash flow. Foundation.
E N D
模块设计 2008-10-25
Applications PACA ……. Portal Web Server Ajax JS PHP Application Server Micro Blog Digg Short Message SDPC ePKP BI UUMS Message Service Schedule QoS Relationship Account ACL Auth Profile Behavior Rank Cash flow Foundation Service Engine Workflow Engine Log Batch Engine Rule Engine Validator Content Management Timer Data Server File Server Gateway Video LDAP RDB Mail SMS
模块设计 • 第一步:详细分析 • Service/Sprite • Object • Core • Rule • Dependency • 第二步:实体状态转移分析(状态图) • 第三步:功能点交互设计(序列图) • 第四步:服务接口详细设计 • 接口和接口交互类型 • 逻辑实现 • 第五步:性能和适应性测试 • 性能调优点 • 适应性配置点 • 易用性 • 部署性
Module Services Switch CRUD ……. Query State Transfer Object Entity attribute attribute State Flag Attribute Core AB Mapping Tagging Formula Sorting …… Rule Formula Rule Pattern Rule Biz Rule Validation Rule Dependency Other Module Foundation Modules Outside System
Simple Message Service Services Switch Query Create Send State Transfer Recall Reply Delete Object Attributes: From, to, type, priority Content: subject, body object ref: Resource Code tag< key, value > Created sent unread red replied deleted 引用:状态图 Message Core Logic Queue Rule Formula Rule 优先级排队 性能调优点: 内存 Dependency Gateway - Email - SMS Account Batch Engine Rule Engine
实体关系图 • Tag是文件系统的实体 • MessageContent与Message之间一对一关系 • 审阅链 • 归档 • 消息树:回复关系 • 消息副本
Content Management Services Switch Search Tagging Archiving Storing State Transfer Identity Lock Object Attribute: - URI - Dublin Core - Tags Entities: - Message - Activity - Account - Profile - Log State Flag: 标识过, 可索引, 可入库,入库后,可搜索,可获取 Document Core Logic Tagging Rule Biz Rule Entity Archiving Data Configuration Table Dependency File Server Indexing Public Database Website Account ACL Rule Engine
实体文件上传风险 BT传输 数据实体合并 两阶段搜索 状态转换
Rule Engine Services Configuration interface(Excel) Execute Switch Query 逻辑阵列 Attribute: - groupId - name - pattern - isMatched - isUnmatched - isFront Object Disable, enable Rule Core Logic Pattern Mapping Rule Formula Rule Pattern Rule Biz Rule Validation Rule Dependency
Account Service Services Create Update Delete Passivate State Transfer Invite Request Invite Response Object Attributes: id, internalId, externalId, name, alias, nickName, email, password, avator Invited, Registered, Visited, Blacklisted, Stolen, Paused, Illegal, Passivated, Deleted 引用:状态图 Account Core Logic Queue Rule Formula Rule 优先级排队 Dependency Gateway - Email - SMS Simple Message Service Batch Engine Timer
Profile Service Services Create Update Query Delete State Transfer Object Attributes: id, Map<key, value> Created, Deleted 引用:状态图 Profile Core Logic Key-Value Map(Tags) Rule Dependency Account
ACL Services Create Update Query Delete CheckPrivilege State Transfer Object UserGroup Role Permission Attributes: PermissionSet Core Logic Map 权限元 Rule Dependency Account Data Server
Authentication Services Authenticate State Transfer Object Attributes: N/A Authentication接口 Core Logic Rule Dependency • Gateway • --指纹识别器 • -面纹识别器 • -声纹识别器 • - USBKEY接口 Account Profile Rule Engine
RankService Services Create Update Query Delete State Transfer Object Attributes: id, name Rank Core Logic Rule Formula Rule 优先级排队 Dependency Account ACL Batch Engine Rule Engine Timer
Cash flow Service Services Create Update Query State Transfer Object Attributes: id, value Cash Core Logic Rule Formula Rule 优先级排队 Dependency Account Batch Engine Rule Engine Timer
Relationship Service Services Create Delete Query State Transfer Object Attributes:N/A Created, Deleted Relation Core Logic Rule Dependency Account
Behavior Service Services Execute Query State Transfer Object Attributes:N/A Core Logic Rule Formula Rule 优先级排队 Dependency Account ACL Batch Engine Rule Engine Timer