[FR] Async `messaging` requests

Open
#784 1 comment 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

Start by reading the existing messaging.send and messaging.send_each APIs, then compare them with the async Firestore work referenced in #635. Done means the messaging APIs have async equivalents that support push notifications without requiring separate threads or run_in_executor().

Written by the indexing model from the issue text.

Description

api: core api: messaging type: feature request

Is your feature request related to a problem? Please describe.
AsyncIO is the future for performant Python web services, and thus one should be able to send push notifications via an async API.

Describe the solution you'd like
async versions of messaging.send, messaging.send_each, etc.

Describe alternatives you've considered
Separate threads / run_in_executor() complicates the code and is not as performant

Additional context
Async Firestore was added in #635, wondering if async support should extend to other Firebase services.

Dominant language
Python
Stars
1.2k
Forks
359
Avg merge
5d 6m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-python

All issues in firebase/firebase-admin-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.