📝 Add external link to blog post about Kafka, FastAPI, and Ably#4044
Merged
Conversation
added my blog to the list of links, its about using FastAPI with Kafka and ably
ArcLightSlavik
approved these changes
Oct 15, 2021
Contributor
There was a problem hiding this comment.
Change name of PR to: Added article about ticket booking with FastAPI and Kafka
Comments below are nitpicks, seems like a good article.
class Conference(BaseModel):
eventId: str
eventCapacity: int
eventDate: int
bookingStart: int
bookingEnd: int
timestamp: int
pass
remove the 'pass'
@app.post('/inbound-conferences')
async def conference_creation(data: Conference, request: Request):
try:
conference_producer.produce(conference_topic, None, data.dict())
conference_producer.poll(0)
conference_producer.flush()
print(data.dict())
except Exception as e:
print(e)
return 400
return 200
request isn't being used
Member
|
Cool, thanks! |
Codecov Report
@@ Coverage Diff @@
## master #4044 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 531 531
Lines 13629 13629
=========================================
Hits 13629 13629 Continue to review full report at Codecov.
|
JeanArhancet
pushed a commit
to JeanArhancet/fastapi
that referenced
this pull request
Aug 20, 2022
…api#4044) Co-authored-by: Sebastián Ramírez <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added my blog to the list of links, its about using FastAPI with Kafka and ably