Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
REST technology
in Python
by Allex Lima
ABOUT ME
● Hello World! I'm Allex, 19 =D
● Computer engineering student
● Researcher and Developer
● An enthusiastic of
 ...
RESUME
EDUCATION
UniNorte Laureate University
Bachelors in Computer Engineering • 2014 - In Progress, December 2018
Studyi...
RESUME
WORK
Unimed Manaus
Web Development Internship • 2014 - 2015
Development of Web systems for internal use in order to...
SKILLS
SKILLS
PHP Python C/C++
JavaScript Assembly ...
SKILLS
SOME PROJECTS
MORE IN ALLEXLIMA.COM
REST technology
in Python
by Allex Lima
what is it?
...
REST
~ REpresentational State Transfer ~
IS AN ARCHITECTURAL MODEL FOR
NET-BASED SYSTEMS INTRODUCED
BY ROY FIELDING
AND
was originally designed
to fit the HTTP protocol
GENERALLY
USED IN...
● WEB SERVICES
● WEB APIS
BUT
REST IS THE BEST CHOICE?
IS NOT THERE ANOTHER OPTION? WHY REST?
yeap! there is
the SOAP too
Simple Object Access Protocol
Google Trends. Available on https://goo.gl/LsuKrF
REST vs. SOAP
Okay, but...
HOW USE REST?
LET’S START!
6 steps
To create a RESTFul Webservice
Client-Server
The client requests data for consumption or updates features that are on the server.
1
Why?
● Responsibiliti...
Stateless
The Server must not keep state sessions. All necessary info for processing must be in
client's request.
2
Why?
●...
HEY! BUT THE
Stateless
Network performance?
Cache
Keeps similar requests in server memory.
3
Why?
● Efficiency;
● Scalability; and
● Performance.
HAAA! BUT THE
Cache
RELIABILITY?
Layered System
The service must be layered, not allowing communication between client and the end
service. The system must...
Uniform Interface
It is basically a form of communication between the server and client.
5
Uniform Interface
resource identification
5.1
URI
Uniform Resource Identifier
/:resource_type/:id
Uniform Interface
resource representation
5.2
Uniform Interface
meta informations
5.3
● HTTP Status Codes;
● Headers
● etc
Uniform Interface
hypermedia
5.4
<optional/>
Code on demand
Allows passing of code in response to requests
6
Owwwa, and
HOW USE REST IN PYTHON?
JsonSchema
let’s do it!!
let’s do it!!
let’s do it!!
let’s do it!!
thanks
allexlima.com
...
REST technology
in Python
by Allex Lima
Tecnologia rest em python
Tecnologia rest em python
Tecnologia rest em python
Tecnologia rest em python
Tecnologia rest em python
Tecnologia rest em python
Upcoming SlideShare
Loading in …5
×

Tecnologia rest em python

174 views

Published on

Palestra realizada no dia 19/11/2016 no 2º meetup PyNorte.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Tecnologia rest em python

  1. 1. REST technology in Python by Allex Lima
  2. 2. ABOUT ME ● Hello World! I'm Allex, 19 =D ● Computer engineering student ● Researcher and Developer ● An enthusiastic of  Artificial Intelligence  Computer Vision  Computation Theory
  3. 3. RESUME EDUCATION UniNorte Laureate University Bachelors in Computer Engineering • 2014 - In Progress, December 2018 Studying the 3th year of the course. Member of groups as the UniNorte Research Group Computer.Acted in hardware, systems and games development. Nowadays I work with projects that involves Neural Network Artificial and Computer Vision. State University of Amazonas Scientific Initiation Scholarship Student by CNPQ • 2015 - 2016 I've worked with the humanoid robot NAO researching about the possibilities of improve the marching cycle, assistive technologies applications with children and Computer Vision. Embrapa - Ocidental Amazon Scientific Initiation Scholarship Student by FAPEAM • 2016 - Present Project for classify features of guaraná through digital image processing, computer vision and computational intelligence.
  4. 4. RESUME WORK Unimed Manaus Web Development Internship • 2014 - 2015 Development of Web systems for internal use in order to help the management the ombudsman department and making commercial reports. I also worked aiding in maintenance of Linux servers Reflect Ind. & Com. LTDA. Information Technology Apprentice • 2012 - 2014 Support for users, printers and email service; Installation, configuration and maintenance of microcomputers; Development of little web systems to internal use.
  5. 5. SKILLS
  6. 6. SKILLS PHP Python C/C++ JavaScript Assembly ...
  7. 7. SKILLS
  8. 8. SOME PROJECTS MORE IN ALLEXLIMA.COM
  9. 9. REST technology in Python by Allex Lima
  10. 10. what is it? ...
  11. 11. REST ~ REpresentational State Transfer ~ IS AN ARCHITECTURAL MODEL FOR NET-BASED SYSTEMS INTRODUCED BY ROY FIELDING
  12. 12. AND was originally designed to fit the HTTP protocol
  13. 13. GENERALLY USED IN... ● WEB SERVICES ● WEB APIS
  14. 14. BUT REST IS THE BEST CHOICE? IS NOT THERE ANOTHER OPTION? WHY REST?
  15. 15. yeap! there is the SOAP too Simple Object Access Protocol
  16. 16. Google Trends. Available on https://goo.gl/LsuKrF REST vs. SOAP
  17. 17. Okay, but... HOW USE REST?
  18. 18. LET’S START! 6 steps To create a RESTFul Webservice
  19. 19. Client-Server The client requests data for consumption or updates features that are on the server. 1 Why? ● Responsibilities division; ● Scalability; and ● Independent evolution.
  20. 20. Stateless The Server must not keep state sessions. All necessary info for processing must be in client's request. 2 Why? ● Scalability; and ● Reliability.
  21. 21. HEY! BUT THE Stateless Network performance?
  22. 22. Cache Keeps similar requests in server memory. 3 Why? ● Efficiency; ● Scalability; and ● Performance.
  23. 23. HAAA! BUT THE Cache RELIABILITY?
  24. 24. Layered System The service must be layered, not allowing communication between client and the end service. The system must be Intermediaries to respond requests instead of the end server. 4 Why? ● Simplicity; ● Encapsulation of complexity; and ● Scalability.
  25. 25. Uniform Interface It is basically a form of communication between the server and client. 5
  26. 26. Uniform Interface resource identification 5.1 URI Uniform Resource Identifier /:resource_type/:id
  27. 27. Uniform Interface resource representation 5.2
  28. 28. Uniform Interface meta informations 5.3 ● HTTP Status Codes; ● Headers ● etc
  29. 29. Uniform Interface hypermedia 5.4
  30. 30. <optional/> Code on demand Allows passing of code in response to requests 6
  31. 31. Owwwa, and HOW USE REST IN PYTHON?
  32. 32. JsonSchema
  33. 33. let’s do it!!
  34. 34. let’s do it!!
  35. 35. let’s do it!!
  36. 36. let’s do it!!
  37. 37. thanks allexlima.com ...
  38. 38. REST technology in Python by Allex Lima

×