API Center ProtoType

  • View
    32

  • Download
    3

Embed Size (px)

Transcript

API Center ProtoType2011-05-31 Version 0.1 by

Mobile Experience NEO CYONCopyright 2010 NEOCYON. INC. All Rights reserved

WebDivisionPage-1 / QA Process

1.

(, ) (S/W) (H/W) H/W S/W . , , , ( , ) ( , , , , ) , ( ) (05/14~05/30)

- WCF(Windows Communication Foundation) with IIS - ASP() - RDBMS (ASP) CRUD WCF - WCF - Open Source(Logging, ORM) 1 ( ~)

1. ()

OS : Windows 7 (IIS 7.5) DBMS : MS-SQL 2008 S/W : .Net Framework 4.0 Open Source : NHibernate-3.2.0.Alpha2 NLog v2.0 Beta 1 Tool : VS.NET 2010 Ultimate soapUI 3.6.1 PC WCF MS-SQL 2008, ASP

Dev ServersWCF + ASP Open Source .NET 4.0 IIS 7.0 MS-SQL 2008 Windows 7

2. (WCF IIS Hosting)

WCF IIS Windows Service, WinForm, Console Self Hosting . WCF Binding HTTP, TCP. MSMQ , , MTOM XML . IIS Hosting HTTP Binding . ASP .Net Framework 4.0 WCF Config . (.Net Framework 3.5 Config . ) VS.NET WCF Service WCF REST Service .

2. (.svc WCF Service Application )

ROA REST . REST . REST WSDL WADL Test Tool . (, , XML-RPC , ROA Interface ) API Center RESTful WCF Service Application . REST . 1. REST RPC OperationMethod Resource 2. DB Resource DB Mapping Primary Key ResourceID (URI) Alternative Key (AK) 3. Last Modified () 4. REST , HTTP Response Code REST (Noun) (Verb: GET, POST, DELETE, PUT) REST ( )

LINK , / (Self descriptive) (Fire Wall, Web Caching ,Web Proxy , L4 switch, L7 switch etc)

STUB , (Behavior, Operation, Method) (Resource) . SYNC (Request/Response) MEP (Message Exchange Pattern) . eg) AsyncFire & Forget, Call back, Conversational Messaging etc.

(JSON, XML)

2. ( )

Crazy.Apis.Member DAC BIZ WCF (eg: ORM , Biz ) WCF Service Application + ADO.NET(Customize) . ( WCF API Center) RESTful migration .

WCF REST Service Application

WCF Service Application + ORM

WCF Service Application + ADO.NET

2. ( )

CRUD . Crazy.Apis.Member DAC BIZ . Member.cs MemberService DataContract . WCF (eg: ORM , Biz )

dll

Nlog

DataContract

dll

(ASP)

NLog config File WCF config File

2. ( : Service Application vs REST Service Application)WCF Service Application Programming WCF REST Service Application Programming

2. ( ASP )

2. (Logging)

Logging . Open Source . : Log4Net ,Nlog 1. Log4Net : Appender (http://logging.apache.org/log4net/) JAVA ADONetAppender, MS SQL Server, MS Access, Oracle9i, ASPNetTraceAppender BufferingForwardingAppender, ColoredConsoleAppender, ConsoleAppender, EventLogAppender FileAppender, ForwardingAppender, MemoryAppender, NetSendAppender, OutputDebugStringAppender RemotingAppender, RollingFileAppender, SmtpAppender, SmtpPickupDirAppender, TraceAppender, UdpAppender 2. Nlog : (http://nlog-project.org/) advanced . Files - single file or multiple, with automatic file naming and archival Event Log - local or remote Database - store your logs in databases supported by .NET Network - using TCP, UDP, SOAP, MSMQ protocols Command-line console - including color coding of messages E-mail - you can receive emails whenever application errors occur ASP.NET trace ... and many more : Nlog -> adapter . File or MSMQ .

2. (ORM)

, . Open Source or MS Product(Entity Framework) . Open Source . . ( CURD .) ORM ProtoType , NoSQL .

: Nhibernate, Mybatis, Entity Framework1. Nhibernate : (http://nhforge.org/) ORM. . (LINQ ...) 2. Mybatis.NET : (http://www.mybatis.org/dotnet.html) iBatis.NET . . ORM Data Mapper Framework . 3. LINQ & Entity Framework : (http://msdn.microsoft.com/ko-kr/library/bb399567.aspx) MS Entity Framework VS.NET LINQ to SQL . LINQ ( select, order) . : Nhibernate -> , , JAVA Open Source .

2. (Testing Tool)

WCF load Test . ( OpenSTA, ACT, Grinder, soapUI 3.6.1, SOACleaner, WcfStorm-Lite-1.3 ) Web Application Stress Test - OpenSTA, ACT 1. OpenSTA : (http://opensta.org/) Load Runner , 2. ACT(Application Center Test) : WCF Test - soapUI 3.6.1, SOACleaner, WcfStorm-Lite-1.3 1. soapUI : (http://www.soapui.org/) Stub Client , , . 2. SOACleaner : (http://xyrow.com/) Web service, WCF and Rest testing tool. . 3. WcfStorm : (http://www.wcfstorm.com/wcf/home.aspx) WCF . Performance Test - VS.NET 2010 : unit, load, performance Test : soapUI -> Open Source Stub , performance . VS.NET 2010 Load Test, Web Performance Test -> VS.NET UNIT Test .

2. (Testing Tool, UI)

soapUI 3.6.1

SOACleaner

WcfStorm

VS.NET 2010

3.

ProtoType : API Center .NET 4.0 WCF(Windows Communication Foundation) . -> Open Source : -> (Log, ORM, Ioc) : ( WCF Service ) 1. 2. 3. 4. WCF VS.NET WCF ASP WCF WCF Stub Test And Load Test

& : 1. 2. 3. 4. 4. Windows 2003 ( .) ASP Exception Handling ASP or CodeDOM or Code Generation QA(UI )

4. ASP.NET WCF http://msdn.microsoft.com/ko-kr/library/aa702682.aspx WCF RESTful http://msdn.microsoft.com/ko-kr/magazine/dd315413.aspx WCF http://msdn.microsoft.com/ko-kr/library/ms735098.aspx ASP.NET http://msdn.microsoft.com/ko-kr/library/ff805009.aspx Comparison of REST Vs XML-RPC http://md314159265.wordpress.com/2006/10/30/comparison-of-rest-vs-xml-rpc/ SOA (Service Oriented Architecture) vs WOA (Web Oriented Architecture) http://blogs.msdn.com/b/hsshin/archive/2008/09/10/soa-service-oriented-architecture-vs-woa-web-oriented-architecture.aspx open source testing tools http://www.opensourcetesting.org/performance.php Grinder http://grinder.sourceforge.net/ OpenSTA http://opensta.org/ NHibernate http://nhforge.org/ iBatis.NET http://ibatis.apache.org/ mybatis.NET http://www.mybatis.org/dotnet.html LINQ & Entity Framework : http://msdn.microsoft.com/ko-kr/magazine/dd263098.aspx http://msdn.microsoft.com/ko-kr/library/bb399567.aspx Log4Net http://logging.apache.org/log4net/index.html Nlog http://nlog.codeplex.com/ What is your DIP/IOC Container of choice? http://www.dominicpettifer.co.uk/?showResults=True CruiseControl.net http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET

End of Document