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.

gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020

403 views

Published on

gRPC 프레임워크 호미를 만들며 파이썬의 모듈을 알아봅니다.

Published in: Engineering

gRPC 프레임워크를 만들며 알아보는 파이썬 - 파이콘2020

  1. 1. Speaker ) SpaceOne(cloud platform) ) CodeLion Futreworks Ssoldot maintained project Homi python gRPC micro service framework grpc-requests relaction support gRPC client PPTT PowerPoint Template for python
  2. 2. Contents gRP C gRPC Workflo w gRPC gRPC for Human s Decorato r Inspect Module
  3. 3. Who use gRPC?
  4. 4. REST vs gRPC https://medium.com/@EmperorRXF/evaluating-performance-of-rest-vs-grpc-1b8bdf0b22da- gRPC Rest 2 Rest,gRPC 100, 200
  5. 5. gRPC - Protocol Buffers XML 3~10 , 20~100 !
  6. 6. gRPC - Stub proto Stub
  7. 7. gRPC - Stub proto Stub 
 SDK 
 ,
  8. 8. gRPC Workflow
  9. 9. How to make gRPC Server? ProtoBu f ProtoBu f
  10. 10. How to make gRPC Server? ProtoBu f ProtoBu f helloworld.proto
  11. 11. How to make gRPC Server? ProtoBu f ProtoBu f helloworld.proto helloworld_pb2.py helloworld_pb2_grpc.py
  12. 12. How to make gRPC Server? ProtoBu f ProtoBu f helloworld.proto helloworld_pb2.py helloworld_pb2_grpc.py GreeterServicer Class
  13. 13. How to make gRPC Server? ProtoBu f ProtoBu f helloworld.proto helloworld_pb2.py helloworld_pb2_grpc.py GreeterServicer Class add_GreeterServicer_to_server
  14. 14. ProtoBuf Swaggerhelloworld.proto
  15. 15. ProtoBuf 1. 2. 3. 4.
  16. 16. ProtoBuf 1. 2. 3. 4.
  17. 17. ProtoBuf 1. 2. 3. 4.
  18. 18. ProtoBuf 1. 2. 3. 4.
  19. 19. ProtoBuf $ python -m grpc_tools.protoc -I ./protos --python_out=. --grpc_python_out=. ./protos/helloworld.proto grpc_tools helloworld.proto Stub hellowrold_pb2.py orm hellowrold_pb2_grpc.py pb2 grpc hellowrold.proto
  20. 20. helloworld_pb2_grpc
  21. 21. Python gRPC
  22. 22. request
  23. 23. request breakpoint() request
  24. 24. request breakpoint() request???
  25. 25. request breakpoint() request
  26. 26. request breakpoint() request ???
  27. 27. request breakpoint() request
  28. 28. gRPC for Humans
  29. 29. Homi micro gRPC framework like Flask
  30. 30. Scope of Homi ProtoBu f ProtoBu f helloworld.proto helloworld_pb2.py helloworld_pb2_grpc.py Homi
  31. 31. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  32. 32. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  33. 33. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  34. 34. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Service blueprint Feature of Homi
  35. 35. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  36. 36. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  37. 37. Plugable Sturct for EcoSyste m Flask like easy interfac e auto parse argument auto serialization data config less to run gRPC server Feature of Homi
  38. 38. Feature of Homi
  39. 39. Decorator
  40. 40. Decorator
  41. 41. Decorator usecase
  42. 42. Decorator
  43. 43. Decorator
  44. 44. Decorator
  45. 45. Decorator
  46. 46. Decorator
  47. 47. Register Decorator Example
  48. 48. Inspect Module
  49. 49. Inspect module usecase
  50. 50. Inspect module usecase
  51. 51. Inspect module usecase
  52. 52. Inspect module
  53. 53. Inspect module
  54. 54. Inspect module
  55. 55. Inspect module
  56. 56. Inspect module
  57. 57. Inspect module
  58. 58. Inspect module
  59. 59. Homi micro gRPC framework like Flask
  60. 60. Let’s Code Pythonic!

×