Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Raj Patil <[email protected]>
  • Loading branch information
rajp152k committed Dec 19, 2024
1 parent df23990 commit f8d3974
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 4 deletions.
44 changes: 44 additions & 0 deletions Content/20241103111606-remote_procedure_calls.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,47 @@
:END:
#+title: Remote Procedure Calls
#+filetags: :programming:cs:

* Overview

** *Definition*
Remote Procedure Calls (RPC) are protocols that allow a program to execute a procedure in another address space, commonly on a different physical machine.

** *Components*:
- *Client*: The program that calls the procedure.
- *Server*: The program that executes the procedure.
- *Communication Protocol*: The method used for data exchange, often including serialization of data (e.g., JSON, XML).

** *Mechanism*:
- The client sends a request to the server.
- The server processes the request and sends a response back.
- Typically involves network communication methods such as TCP/IP.

** *Types of RPC*:
- *gRPC*:
- Utilizes HTTP/2 for transport.
- Supports multiple programming languages.
- Features tools for automatic code generation.
- *XML-RPC*:
- Encodes RPC calls in XML format.
- More verbose due to XML, which can increase overhead.
- Simpler implementation and more human-readable.
- *JSON-RPC*:
- Similar to XML-RPC, but uses JSON for encoding.
- Generally more lightweight than XML.
- Suitable for web applications and easier for JavaScript integration.
*** Comparisons:
- *Performance*:
- gRPC often outperforms XML-RPC and JSON-RPC due to binary serialization and multiplexing capabilities.
- *Ease of Use*:
- JSON-RPC may be easier for web developers due to JSON's prevalence in web APIs.
- *Language Support*:
- gRPC has extensive language support and is well-documented, whereas XML-RPC and JSON-RPC could be limited in terms of language bindings.
- *Best Use Case*:
- gRPC is favored for microservices, whereas XML-RPC and JSON-RPC are more commonly utilized for lightweight web services.
** *Use Cases*:
- [[id:54978664-78a5-4c2c-ae33-c4e6a14d6bb0][Microservices]] architectures.
- [[id:a3d0278d-d7b7-47d8-956d-838b79396da7][Distributed]] computing systems.
- Remote [[id:2f67eca9-5076-4895-828f-de3655444ee2][database]] access.
- Cloud services and [[id:20240101T073142.439145][APIs]].

4 changes: 4 additions & 0 deletions Content/20241218184944-mcp.org
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
- https://github.com/mark3labs/mcphost
- https://github.com/otwld/ollama-helm

* Relevant Nodes
- JSON-[[id:19079639-be92-46cf-82c5-3d81c935705c][RPC]]

* Resources
- https://modelcontextprotocol.io/introduction
- https://spec.modelcontextprotocol.io/specification/
16 changes: 12 additions & 4 deletions Content/20241219104211-karpor.org
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
:PROPERTIES:
:ID: b5c02b4f-4476-4af1-88ad-2ca1cd2aec8e
:END:
#+title: Karpor
#+title: Karpor-MCP
#+filetags: :open-source:project:

* Work Logs
** 0x2325
* Context
- https://github.com/KusionStack/karpor/issues/658
** Logs
*** 0x2325 Spec Readup
- https://spec.modelcontextprotocol.io/specification/
*** 0x2325 Project Init
- init chronologically descending logs for karpor contribs
- [[id:f6f7f087-b7fe-4192-8950-497166f5af0f][model context proctol]] integration into the stack is what I'm going for
* Notes
** Server Functionalities
- Context + data (for model and user)
- Prompts: templated messages and workflows for users
- Tools: Functions for AI model to execute
* Relevance
- https://github.com/KusionStack/karpor/issues/658
* Resources
- https://github.com/KusionStack/karpor

0 comments on commit f8d3974

Please sign in to comment.