# AWS Lambda (Golang in docker) running slower than Python service

**URL:** <https://forum.golangbridge.org/t/aws-lambda-golang-in-docker-running-slower-than-python-service/32847>\
**Category:** Getting Help\
**Created:** [August 29, 2023, 11:30am UTC](https://forum.golangbridge.org/t/aws-lambda-golang-in-docker-running-slower-than-python-service/32847 "2023-08-29T11:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgelza](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/georgelza/32/13635_2.png) [@georgelza](https://forum.golangbridge.org/u/georgelza)\
**Post date:** [August 29, 2023, 11:30am UTC](https://forum.golangbridge.org/t/aws-lambda-golang-in-docker-running-slower-than-python-service/32847/1 "2023-08-29T11:30:32Z")

</div>

Hi hi all

I wrote a Python function that consumes a gzip’d file from AWS S3, and posts the lines/records onto a confluent Kafka topic, it runs at just over 8000 records/lines per second.

I then duplicated the functionality in Golang… had to build the golang version into a docker container to get it to work due to the usage of c modules by the confluent package.

strange thing, it only runs at 5128 constantly/second…

same lambda memory allocations, same basic design/steps etc.

Any chance anyone is willing to take a peak and make suggestions how to get the golang faster… I expected it faster, actually allot…

> **[GitHub - georgelza/GoLambdaLoader](https://github.com/georgelza/GoLambdaLoader)**
>
> Contribute to georgelza/GoLambdaLoader development by creating an account on GitHub.

G

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [November 27, 2023, 11:30am UTC](https://forum.golangbridge.org/t/aws-lambda-golang-in-docker-running-slower-than-python-service/32847/2 "2023-11-27T11:30:48Z")

</div>

Closed on November 27, 2023, 11:30am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
