Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Rest Nirvána Mikroszervizekkel

No description
by

Kasler Lóránd

on 8 November 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Rest Nirvána Mikroszervizekkel

Player + Extra
Mikroszervizek
+
REST Nirvána
Mikroszerviz vs SOA vs Monolith
=
?
Level 0 - XML RPC
Leonard Richardson
POST /eventService HTTP/1.1

<newEventRequest date = "2010-01-04" venue = "park"/>
Level 1 - Resources
sok URI
kevés HTTP metódus
legtöbb "REST" API
POST /events/1234 HTTP/1.1

<RSVPRequest>
<user id = "foo"/>
<status>YES</status>
</RSVPRequest>
Level 2 - HTTP metódusok
GET /events/123/rsvps?date=20141104&status=YES HTTP/1.1
POST /events/12/rsvps HTTP/1.1

<RSVPRequest>
<user id = "foo"/>
<status>YES</status>
</RSVPRequest>
HTTP/1.1 201 Created
Location: /rsvps/56

<RSVP date="20141108">
<event id = "123" />
<user id = "foo"/>
<status>YES</status>
</RSVP>
sok URI, sok metódus
HTML4 nem támogatja csak a GET és POST metódusokat
tényleg szinte minden API
1 URI, 1 metódus
Level 3 - Hypertext / Hypermedia
Uniform Interface
Resource alapú
Önleíró
HATEOAS
Stateless
Cacheable
Client-Server
Layered System
Code on Demand (optional)
Roy Fielding
Mindent vagy nem REST!!
<a href="google.com"
rel="search">
Keresés
</a>
H
ypertext
A
pplication
L
anguage
{
"_links": {
"self": {
"href": "/users/mike"
},
"curies": [
{
"name": "ht",
"href": "http://haltalk.herokuapp.com/rels/{rel}",
"templated": true
},
{
"name": "bla",
"href": "http://haltalk.herokuapp.com/rels/{rel}",
"templated": true
}
],
"ht:posts": {
"href": "/users/mike/posts"
}
},
"username": "mike",
"bio": null,
"real_name": "Mike Kelly"
}
HATEOAS == Állapotgép
<form method="post"
action="/search">
<input type="text"
name="searchField"/>
</a>
Mi egy mikroszerviz ?
SOLID Alkalmazás szinten
DevOps
Conway Tétel
fordítottja
Mikroszerviz Keretrendszerek
Statikus Kiterjesztés
Player
+ Badges
+ Subscriptions
Campaign
+ Messages
+ Comments
GET
Események Mindenfele
GET Player
+ Extra
Player
+ Extra
Streaming Minden
GET Player
+ Extra 1
Player
+ Extra
+ Extra 2
SSE
Web
Socket
Player
+ Extra
Player
Full transcript