PyCon, the gathering for the community using and developing the open-source Python programming language. This is the second year of the PyCon Pune where the community will meet for two days of talks and working on upstream projects in two days of dev sprint. CFP ends on 15th September AoE.


Note to submitters: The talks will be selected by a team. We will not count the public votes.

Hosted by

PyCon Pune 2017 more

Nabarun Pal


Building microservices with firefly

Submitted Sep 14, 2017

firefly is an open source micro framework to deploy Python functions as web services. firefly was created with the aim of simplifying the deployment Machine Learning models as RESTful API. But as fate would have it, it became our favourite tool for building microservices. firefly takes care of processing the HTTP requests, forwarding the data to the python functions and encoding the result back to a HTTP request. It also has data validation, authentication support, transfering any type of file. You can also define a configuration file specifying the URL resource structure resulting in an elegant RESTful API.

It comes with a client library that makes calling remote functions calling as easy as calling functions present locally. It is a WSGI application and can be deployed and scaled through any WSGI server like gunicorn. There are many other features in the pipeline like multiple authentication modes through the plugin system.


This talk will focus on introducing firefly, it’s notable features like plugin support, building microservices efficiently with various examples.

Slide outline:

  1. About me
  2. Microservices Architecture
  3. Comparison with monolithic architecture
  4. Design Patterns
  5. Forces in Action
  6. Solution
  7. Examples
  8. Benfits
  9. When to use?
  10. Who uses?
  11. Firefly to the rescue
  • What is firefly?
  • Why use firefly?
  • Code
  • Run
  • Deploy
  • Use (Client)
  • Authentication
  • Data Validation
  • Canonical URL’s
  • Plugins



The participants should have a basic notion of making web services and RESTful API’s.

Speaker bio

The speaker is Nabarun Pal, a final year undergraduate student at Indian Institute of Technology Roorkee. Currently, he is working for rorodata which aims at providing data scientists a platform to build and deploy their models without the need of worrying about infrastructure, scalability, and performance. He is working on an Open Source Functions as a Service framework called firefly.

He is passionate about software development. He can also talk about Internet of Things, Electronics, Robotics with equal spirit. His journey with the field of software and robotics started in his schooling days. He represents the college in various Robotics competitions and was involved in projects related to the above domains, brief of which can be found here. He actively participates in conducting open lectures for students in the domains of Introductory Robotics, Control, AI and ML through a curated community of around 2000 members. He is also spoke at PyData Delhi 2017.


{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

PyCon Pune 2017 more