What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi, I need to call 3rd part api from zed and I'm thinking which approach will be better: 1. call 3rd
Hi,
I need to call 3rd part api from zed and I'm thinking which approach will be better:
1. call 3rd part api directly from the Zed using for example Guzzle Http Client
2. implement communication with 3rd part api in Client module (also using for example Guzzle) and call Client from Zed
3. other?
Is Client designed for "internal" communication, around Spryker's ecosystem only, or can/should it communicate with 3rd part systems?
Comments
-
Hey Przemyslaw,
Normally we go for option 1.
However, youβre not forbidden to use Client for that too, especially in case when you need to re-use that functionality on Yves or Glue.
Client was originally designed for Yves and Glue to βtalk to the external worldβ - Zed, Session, KeyValue, Search, β¦0 -
Cases when Zed is using the Client are seldom and are rather exceptional.
0 -
on one of the projects we had a need to access ES on Zed, making sure the search results are exactly the same as in Yves, and so we re-used Client for that. Worked perfectly fine for us.
0 -
thanks! π So it's not specified and we can use both options, but if this communication is zed only specific, then probably better is to not use client, am I right?
0 -
correct. If you see that this 3rd party will be called by Zed only, there is no need in additional layer/abstraction, like Client. You can have a module that would play somewhat an Adapter role, accepting transfer objects as requests and returning back transfer objects as a response
0 -
and you would call it from the business logic where you need to
0 -
ok, thanks π
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 931 Developer Corner
- 789 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random