• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Better understand Prisma, gRPC, JWT, and Pulsar for Symfony developer

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
1. Prisma <-> Doctrine ORM (or Eloquent for simpler cases):

Prisma's Role: Acts as a type-safe ORM, providing a structured way to interact with databases with autogenerated types based on your schema.
Symfony's Equivalent: The primary ORM in the Symfony ecosystem is Doctrine ORM.
You might also consider using Eloquent, which can be integrated into Symfony. However, Doctrine is the more standard and feature-rich ORM within the Symfony framework.
Prisma is like a modern, type-safe alternative to Doctrine, focusing on developer experience and schema-first development.

2. gRPC <-> API Platform (or manual controller setup):

gRPC's Role: A high-performance RPC framework using Protocol Buffers for efficient communication between services.

Symfony's Equivalent:
API Platform: This powerful Symfony framework helps build modern web APIs, including support for different formats like REST and GraphQL.

While gRPC, handles serialization, validation, and documentation. You could think of it as providing a well-defined contract for communication, similar to gRPC's Protocol Buffers.

Third-Party gRPC Libraries: There are PHP gRPC libraries you could integrate into your Symfony project, but they are not as tightly integrated as API Platform.

*3. JWT <-> LexikJWTAuthenticationBundle (or Symfony Security Component):
*

JWT's Role: A standard for creating secure access tokens.
Symfony's Equivalent: The most popular and well-maintained bundle for handling JWT authentication in Symfony is LexikJWTAuthenticationBundle.

Pulsar <-> Symfony Messenger Component (or other message queue integrations):

Pulsar's Role: A distributed message and event streaming platform for asynchronous communication.
Symfony's Equivalent: Symfony has a built-in Messenger Component that facilitates asynchronous message handling.
Messenger allows you to send and consume messages via various transports (like RabbitMQ, Doctrine, Redis, etc.).

Pulsar is like a large, scalable postal service for events across your entire infrastructure. Symfony Messenger is like a more localized postal service within your Symfony application, allowing different parts of your application to communicate asynchronously.

RabbitMQ or Pulsar

Pulsar, on the other hand, is a newer, cloud-native messaging and streaming platform designed for high scale, high throughput, strong persistence, and multi-tenancy. It aims to handle both queuing and streaming workloads efficiently.

Choose RabbitMQ if:

You need a well-established and widely used message broker.
Your application has complex routing requirements.
Simplicity of setup and a large community are important.
Your scaling needs are moderate.
You primarily need message queuing.
Choose Pulsar if:

You require very high throughput and scalability.
Strong message persistence and durability are critical.
You need built-in multi-tenancy support.
You have use cases that involve both message queuing and event streaming.
Geo-replication is a requirement.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу