
Mehdi Saffar
Verified Expert in Engineering
Software Developer
Sousse, Sousse Governorate, Tunisia
Toptal member since August 10, 2021
Mehdi is a senior full-stack developer with experience in diverse startups, from delivery and social media to navigation. Recently, he has developed a GPT-4 bot at Batelle, reducing the workload for Sleep Guides by 40%. At Pointz, Mehdi has integrated cyclist ratings into a routing engine for safer bike routes. Expert at optimizing performance and ensuring system reliability, Mehdi strongly advocates clean code, testing, and maintainability and brings strong technical skills to every project.
Portfolio
Experience
- Linux - 4 years
- Node.js - 4 years
- Python - 3 years
- React - 3 years
- SQL - 2 years
- MongoDB - 2 years
- Antd - 2 years
- Jest - 1 year
Availability
Preferred Environment
Visual Studio Code (VS Code), Node.js, React, Linux, Python, PostgreSQL
The most amazing...
...thing I've achieved is creating a GPT-4 powered bot for a growing sleep training app that slashed the workload for Sleep Specialists by 40% in just two weeks.
Work Experience
Senior Software Engineer
Batelle
- Reduced our sleep guides' workload by 40% by setting up a custom GPT-4 bot that automatically responds to customers.
- Simplified cloud management and orchestration by migrating core parts of our infrastructure to Terraform.
- Expanded our data analytics capabilities by setting up ETL from Firestore to BigQuery to use more powerful and expressive queries.
- Accelerated continuous integration (CI) fourfold by parallelizing unit and integration tests written in Jest.
- Developed new Nuxt.js features for the support dashboard, aiding sleep guides in handling an increased customer base.
- Investigated sleep guides' bug reports thoroughly, typically resolving issues within four hours.
- Advocated for the implementation of structured logging in Datadog to enable early detection of bugs.
- Standardized a unified set of Tailwind UI components, ensuring style consistency and accelerating new component development.
Senior Back-end Engineer
Pointz
- Mentored a junior team on the required changes to ensure correctness and improve the security and scalability of their app.
- Wrote a Python script to evaluate road safety from OpenStreetMap attributes and integrated cyclist feedback into the C++ Valhalla routing engine, delivering the core feature of bike-friendly route suggestions.
- Enhanced the PostgreSQL database and used PostGIS geospatial extensions to better align with application requirements and industry standards.
- Consolidated two separate databases into one using AWS Database Migration Service (DMS), streamlining data access and querying without any downtime.
Senior Back-end Engineer
Suly Inc.
- Accelerated integration tests by 22 times by replaying recorded requests and inbound webhooks.
- Tripled unit test speed by parallelizing and isolating data at the process, database, and Redis levels.
- Automated the deployment of Node.js, GraphQL, and PostgreSQL stack to Heroku using GitHub Actions.
- Integrated APIs Stripe, Mux, and Sentry to handle payments, video upload, transcoding, and bug tracking.
- Enforced code style, linting rules, and passing tests using Git hooks and GitHub Actions.
- Built job queue using BullMQ to offload heavy CPU/IO-bound processing.
- Implemented video posts feature with view count, like count, nested comments, and promoted content.
- Auto-generated GraphQL queries from schemas in tests to reduce code duplication and tedious boilerplate.
- Protected webhook processing from identity fraud and replay attacks and ensured the idempotency of duplicate and out-of-order events.
Data Science Intern
Getir
- Developed a machine learning model based on LightGBM to provide a more accurate estimated time of arrival (ETA) of market orders.
- Wrote complex SQL queries to fetch all necessary columns across multiple tables in the Amazon Redshift database.
- Reduced the preprocessing duration from two hours down to 20 minutes by using proper data structures, vectorization, and parallelism.
- Enhanced model accuracy threefold through detailed exploratory data analysis and iteratively refined feature engineering.
Full-stack Developer
Tavan
- Designed complex data tables with filtering, sorting, and chart components capable of querying any date range with zoom and pan features.
- Built an immersive map interface for visualizing thousands of routes with advanced filtering and lazy querying capabilities.
- Integrated it with 3rd-party APIs to download and process user data.
- Developed a geo-editor app that displays OpenStreetMap node data on a map with heatmaps, 3D hex grids, and scatterplots, utilizing the deck.gl library.
- Created a custom, fine-grained access control system for administrative users.
Front-end Developer
Directik
- Improved the admin dashboard to easily manage app content and added internationalization.
- Made forms more user-friendly with strict validation and autocomplete features.
- Built a messaging system between customers and shop owners, using WebSockets.
Java Teacher (Volunteer)
COMPEC, Boğaziçi University
- Taught an 8-week introductory course for Java to an audience of around 60 students.
- Introduced students to variables, conditions and loops, recursion, and object-oriented principles.
- Mentored students in developing projects, including a console calculator, console games, Tower of Hanoi solver, and a Sokoban graphical tiled game.
Experience
SPH Fluid Simulator with WebGPU API
https://webgpu-sph.vercel.app/Social Network Analysis of Researchers (SONAR)
https://github.com/adilnumancelik/sonarGetflix
https://github.com/bounswe/bounswe2020group2The website includes product listing and filtering, reviewing, checking out a shopping cart, tracking orders, and chatting with vendors. The project was first designed by collecting requirements via continuous communication with the client, making various diagrams that clarified what the system was about and how it worked, and mockups that showed how various use cases would look on the website.
The website was containerized using Docker and deployed on AWS EC2 instances. I set up the CI/CD pipeline using GitHub Actions, which saved a lot of time and human errors during the delicate deployment process. Finally, we collaborated to write a detailed report that explained the entire process behind building and publishing the project and the tools that helped us achieve this goal as a team.
Email Classifier Using Multinomial Naive Bayes and Mutual Information
I developed this project for an information retrieval course, and the report can be found on GitHub under report/report.pdf.
Education
Bachelor's Degree in Computer Engineering
Boğaziçi University - Istanbul, Turkey
Skills
Libraries/APIs
Node.js, React, Antd, REST APIs, Vue, Asyncio, Python Asyncio, Scikit-learn, Pandas, Google Maps, Kepler.gl, Web Worker, Objection.js, Stripe, WebGPU, WebGPU Shading Language (WGSL)
Tools
Git, GitHub, Bitbucket, BigQuery, Amazon Simple Queue Service (SQS), Knex.js, Docker Compose, Amazon Elastic Container Registry (ECR), CMake, Cron, Terraform
Languages
Python, JavaScript, HTML, CSS, TypeScript, HTML5, SQL, Java, Processing, GraphQL, C++
Frameworks
Tailwind CSS, Express.js, Jest, Django, Vanilla JS, Next.js, Deck.gl, Cypress, LightGBM, Bootstrap, Redux, Nuxt.js, Svelte, NestJS
Paradigms
REST, ETL, Responsive Web Design (RWD), Continuous Delivery (CD), Testing
Platforms
Visual Studio Code (VS Code), Vercel, Linux, Docker, Mapbox, Heroku, Firebase, Google Cloud Platform (GCP), AWS Lambda, HubSpot, Amazon Web Services (AWS), Amazon EC2
Storage
Cloud Firestore, MongoDB, PostgreSQL, Databases, Redshift, Elasticsearch, Redis
Other
Full-stack, Axios, Full-stack Development, Lambda Functions, Dashboards, Front-end, APIs, FastAPI, OpenAI, HubSpot CRM, Data Visualization, Artificial Intelligence (AI), Chatbots, Large Language Models (LLMs), Payment APIs, API Integration, Distributed Systems, Algorithms, Machine Learning, Statistics, Networks, Information Retrieval, Linear Algebra, Numerical Optimization, Embedded Systems, Simulations, Data Science, Pyodide, Separation of Concerns (SoC), Data Structures, Vectorization, Exploratory Data Analysis, OpenStreetMap, 3D Visualization, Heatmaps, Social Network Analytics, WebAssembly (Wasm), CI/CD Pipelines, Text Classification, Responsive Web Apps, Video Uploading, Video Transcoding, GitHub Actions, Webhooks, Routing, Amazon RDS, SSH, QGIS, Document Management Systems (DMS), Google BigQuery, GPU Computing, SvelteKit, Vite, Payment Gateways, eCommerce, i18n, Internationalization, Architecture, Recursion Testing
How to Work with Toptal
Toptal matches you directly with global industry experts from our network in hours—not weeks or months.
Share your needs
Choose your talent
Start your risk-free talent trial
Top talent is in high demand.
Start hiring