PowerPoint 프레젠테이션 - JenniferSoft,Inc

Download Report

Transcript PowerPoint 프레젠테이션 - JenniferSoft,Inc

기술로 고객의 마음을 움직입니다
WebtoB 4.0
소개
KAIST 박대연 교수
[email protected]
1
기술로 고객의 마음을 움직입니다
Contents
•
•
•
•
•
•
WebtoB 4.0
Introduction
What is WebtoB 4.0
Feature of Web Server
Feature of TP-Monitor
Feature of Web Application Server
Conclusion
2
기술로 고객의 마음을 움직입니다
I
WebtoB 4.0
Introduction
3
기술로 고객의 마음을 움직입니다
Current Web Server
* 사용자가 원하는 Web Page들을 HTTP를 통해 전달
* Static HTML과 동시에 Dynamic HTML을 통한 다양한
Web Service 지원
Web
Browser
Web
Browser
WebtoB 4.0
Static HTML
HTTP
Web
Server
CGI
PHP
4
기술로 고객의 마음을 움직입니다
차세대 Web Server 의 요구사항
High Speed Processing
of HTTP Requests
Web Transaction
WebtoB
System Management
on Web Environment
E-Business Services
WebtoB 4.0
5
기술로 고객의 마음을 움직입니다
II
WebtoB 4.0
What is
WebtoB 4.0
6
기술로 고객의 마음을 움직입니다
What is WebtoB 4.0
Web Server + Web Application Server + TP-Monitor
Client
HTML
Client
CGI
WebtoB
Client
PHP
Client
Client
WebtoB 4.0
Web API
7
기술로 고객의 마음을 움직입니다
Feature of WebtoB 4.0
•Feature of Web Server
–Multi Thread mechanism
–Memory Caching
–Web API
–Dynamic Configuration
•Feature of Transaction Processing Monitor
–Web Transaction
–Back Up Feature
•Feature of Web Application Server
–TDBC
–TSP
–Session management
–Integrating with Other WAS
WebtoB 4.0
8
기술로 고객의 마음을 움직입니다
III
WebtoB 4.0
Feature of
Web Server
9
기술로 고객의 마음을 움직입니다
Feature of Web server
• High Speed and Powerful Web Server
–
–
–
–
WebtoB 4.0
Multi Thread Architecture
Memory Caching
Web API
Dynamic Configuration
10
기술로 고객의 마음을 움직입니다
WebtoB Multi Thread Architecture
TP Service
Client
HTTP
Web API
Thread
Web API
Thread
Web API Process
HTTP
Client
Internet
HTTP TCP/IP
Client
Web Service
WebtoB
CGI process
HTTP
PHP process
Client
하나의 서비스
요청에 하나의
Thread 생성
HTTP
Client
WebtoB 4.0
: Thread
11
HTML process
SSI process
기술로 고객의 마음을 움직입니다
Multi Threads & Multi Process
• Thread는 다수의 동시 사용이 가능한 프로그램을 사용하는 한 유저나, 서비
스 요청에 대한 정보를 말한다.
• Multi-Threads 방식은 한 서비스 요청에 따라 새로운 Process를 생성시키는
기존의 방법과는 달리 모든 작업을 하나의 프로세스가 관리하고 새로운 서비스
요청시 Thread를 생성시켜 그 서비스를 처리하기 때문에 기존의 방법보다
Overhead가 적다.
User Request
User Request
User Requests
업무 Process
Process
Thread
User Request
Process
Process
User Request
Process
Multi-Threads
Multi-Threading
WebtoB 4.0
Multi-Processing
(Single Thread)
12
기술로 고객의 마음을 움직입니다
Multi Thread를 통한 Service 처리
WebtoB Server
Threads
HTML 프로세스
Client
Browser
WebtoB
Core
CGI 프로세스
Web API 프로세스
각 서비스에 대한 요청은 WebtoB Core가 처리 프로세스로 넘겨주고 각 프로세스에서
그 요청에 대응하는 Thread를 생성하여 처리한다.
WebtoB 4.0
13
기술로 고객의 마음을 움직입니다
Memory Caching
•
Memory Caching
- 메모리에 자주 사용되는 부분을 저장하여 빠른 사용 지원
- 기존의 Disk Caching보다 빠른 속도를 보장
•
Memory 상황에 따라 적합한 Caching 용량 결정 가능
WebtoB 4.0
14
기술로 고객의 마음을 움직입니다
Web API
• 빠르고 안정적인 Response 보장
• CGI대비 월등한 성능 제공 (WebAPI와 CGI 비교)
- CGI
: 사용자의 요구 순간마다, Process fork가 이루어져 작업을 처리함.
fork Overhead등, 많은 문제를 지니고 있다.
- Web API
: Web server내에서 이미 Process가 존재함 Fork overhead가 없다.
CGI에 비해 굉장히 빠른 처리 속도를 보장하며, Process 관리도 가능.
기존 CGI를 Conversion하기 쉽게 Design되어 쉽게 Conversion.
• Web Transaction 구현시 이용
WebtoB 4.0
15
기술로 고객의 마음을 움직입니다
Web API Architecture (CGI vs. Web API)
CGI Mechanism
WebtoB 4.0
Web API Mechanism
16
기술로 고객의 마음을 움직입니다
Dynamic Configuration
• WebtoB Web Server run time 시에 Configuration을 변경하여 새
로운 Node 나 Server 등 추가 및 변경 가능
– Configuration File의 모든 설정 변경 가능
[Ex]
WebtoB …now running
HTML
CGI
New
Server
New
Server
add new server or
change core information
WebtoB core
New WebtoB core
Client
WebtoB 4.0
Client
17
기술로 고객의 마음을 움직입니다
IV
WebtoB 4.0
Feature of
TP-Monitor
18
기술로 고객의 마음을 움직입니다
Feature of TP-Monitor
•
Support Web Transaction
– Make Transaction program with Web API
– Support Global Web Transaction
• Support Client issue Global Transaction
• Support Server issue Global Transaction
WebtoB 4.0
19
기술로 고객의 마음을 움직입니다
Direct TP Forwarding
• Transaction 서비스 (TP-Service)를 웹 환경에서 요청할 수 있는 최초의 웹 서버
• 마치 기존의 Web 서비스를 (예: PHP) 요구하는 것과 같아, 사용자가 쉽게 이용 가능
• WebtoB Server내에서 모든 Tmax 관련 Service 제공 가능
Tmax Service Call
http://www.tmax.co.kr/tmax/service1
HTTP
Tmax Service
Client
HTTP
Client
WebtoB
HTTP
Client
WebtoB 4.0
Only Forward Service Call
20
TP Service 1
TP Service 2
기술로 고객의 마음을 움직입니다
TP Service Flow
TP Service
TP Service 1
TP Service 2
Request
(HTTP)
Web Service
HTTP
Client
Internet
TCP/IP
WebtoB
CGI
PHP
Response
(HTTP)
HTML
Servlet
WebtoB 4.0
21
기술로 고객의 마음을 움직입니다
Transaction Program with Web API
* Developer can make transaction service program
with Web API
Web API Program
SVC_a(rqst, …)
{
wbtxbegin()
SVC_b
{
function
tpcall(SVC_b)
}
wbtxcommit()
wbreturn()
WebtoB 4.0
}
22
기술로 고객의 마음을 움직입니다
Global Web Transaction 1
• Global Web Transaction
– WebtoB supports Client (Web Browser) issue
Transaction
• WebtoB Core Engine maintains Client information and
manage the Transaction Information
– Also supports Server issue transaction
• Both of Client and Server can issue Global Web
Transaction
WebtoB 4.0
23
기술로 고객의 마음을 움직입니다
Global Web Transaction 2
WebtoB Web Server
WebtoB core engine
client issue transaction
Start transaction
SVC_A
SVC_B
Client
SVC_C
`
SVC_D
commit and return result
Commit
WebtoB 4.0
24
Commit Transaction
기술로 고객의 마음을 움직입니다
V
WebtoB 4.0
Feature of
WAS
25
기술로 고객의 마음을 움직입니다
Feature of Web Application Server
• Powerful Web Application Server
– TDBC
• Database Connection API
• Connection Pooling
– TSP
• Script Language for developing presentation
• Simple
• Convert C program into TSP very easily
– Session Management
– Integrating with other WAS
• JEUS, Web Logic, Web Sphere …
WebtoB 4.0
26
기술로 고객의 마음을 움직입니다
WebtoB TDBC
• Web API와 TSP를 위한 Database 연결 API
– 쉽고 편하게 DB와 연결할 수 있는 기능을 제공
• Database Access를 위한 SQL 요청 방법을 일원화
• TDBC Management
–
–
–
–
WebtoB 4.0
Connection to the Database
SQL query for Database Access
Management of SQL query results
Support Connection Pooling
27
기술로 고객의 마음을 움직입니다
Using TDBC
Web API Threads
Sample program using TDBC
Web API Server
SVC_A (rqst,…. )
{
…
ds = DBNewDataSource();
…
DBGetConnection(ds, user, pass, err);
…
DBCreateStatement(…);
…
…
DBExecuteQuery(…);
…
DBCommit(…);
…
wbreturn(..);
}
TDBC API
Database
WebtoB 4.0
28
기술로 고객의 마음을 움직입니다
TDBC Connection Pooling
Web API Service Process
waiting
waiting
Web API
Service thread
TDBC Manager
Real connection
Idle connection
Connection pooling
Database
Share a shared network connection
WebtoB 4.0
29
기술로 고객의 마음을 움직입니다
WebtoB TSP
• 새로운 Dynamic HTML을 구현하는 Compile 방식의 Server Script
Language
• TSP는 빠른 처리 속도와 편한 관리를 위하여 Servit 이라는 단위로
Compile 되어 처리 된다.
• TSP는 Tmax로 구현된 서버 응용 프로그램과의 Interface를 지원한다.
• TSP는 C 언어의 문법을 그대로 수용하여 기존 C 응용 프로그램의 전환을
쉽게 하였다.
• TDBC API를 통해서 Database와의 연동을 쉽게 할 수 있다.
WebtoB 4.0
30
기술로 고객의 마음을 움직입니다
TSP conversion into server program
(1)
<% tsp test page %>
<%@ include = …>
<%! int i = 0; …. >
….
client request
(2)
http://www.tmax.co.kr/abc.tsp
WebtoB Web Server
Client
TSP engine
(5)
return result
(3) Generating
server program
WebtoB
Core Engine
(4)
WebtoB 4.0
31
Compile
tsp page
Server
program
기술로 고객의 마음을 움직입니다
Using TSP
<%@ page contentType=“text/html” info=“test tsp” %>
<%@ include file=“tdbc.h” %>
<% -- database access function … %>
<%!!
char **DBReadEmployee(int deptno, int * rowcount)
{
Database connection …
}
%>
<% -- function body %>
<HTML>
<BODY>
<%!
int i = 0;
int deptno = 0;
…
other variables and function …
%>
<%!
wbtx_begin();
tpcall(SVC_A);
…
other function call ..
wbtx_commit();
%>
…
</BODY>
</HTML>
WebtoB 4.0
32
TDBC API
General HTML Tag
General C variable and function
Transaction start function
Transaction commit function
기술로 고객의 마음을 움직입니다
Session Management
* WebtoB store and manage Client session information
– So, client information does not flow into the Internet
WebtoB Core Engine
WebtoB 4.0
Client 1
Client 2
Client 3
Client 4
Client 5
Session information
Session information
Session information
Session information
Session information
Client n
Session information
33
기술로 고객의 마음을 움직입니다
Why TDBC and TSP and Session Management ?
* TDBC
– Lightweight
– High Speed
• faster than JDBC
– Tightly coupled with Web API
* TSP
– Make Service program very easily
– Include old C program very easily
* Session Management
– High Speed
• No cookie will be needed
– Secure management of Client Information
WebtoB 4.0
34
기술로 고객의 마음을 움직입니다
Web Application Server와 연동
Web Server
Web Browsers
HTTP
OVER
TCP/IP
4GL & Java Client
HTTP
IIOP
TCP
SSL
Legacy
Application
(IBM etc)
WebtoB
Presentation & Host
Application
-Link
Logic
J2EE
EJB
JMS
JTA
JDBC
CORBA Tmax
Web Application Server
WebtoB 4.0
35
RDBMS
기술로 고객의 마음을 움직입니다
VI
WebtoB 4.0
Conclusion
36
기술로 고객의 마음을 움직입니다
Conclusion
• High Performance and Powerful Web Server
– Multi thread, Memory caching, Web API
– Dynamic Configuration
• Supports Web Transaction
– Transaction program using Web API
– Global Web Transaction
• Both of Client and Server can issue Transaction
• Powerful Web Application Server
– TDBC, TSP, Session Management
– Integrating with Other WAS
WebtoB 4.0
37