You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Prateek Maheshwari (JIRA)" <ji...@apache.org> on 2019/03/19 17:45:00 UTC

[jira] [Commented] (SAMZA-1815) Use TableDescriptors to generate configurations during planning phase

    [ https://issues.apache.org/jira/browse/SAMZA-1815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796332#comment-16796332 ] 

Prateek Maheshwari commented on SAMZA-1815:
-------------------------------------------

[~bharathkk] Is this still relevant?

> Use TableDescriptors to generate configurations during planning phase
> ---------------------------------------------------------------------
>
>                 Key: SAMZA-1815
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1815
>             Project: Samza
>          Issue Type: Improvement
>            Reporter: Bharath Kumarasubramanian
>            Priority: Major
>
> Currently, the pattern followed to materialize table descriptors into configuration is as follows.
>  # User application provides a TableDescriptor
>  # Samza constructs a TableSpec from the table descriptor
>  # In the planning phase, Samza uses the table provider factory from the table spec to create a concrete TableProvider instance.
>  # The concrete instance is used to generate the actual configurations for the table and shoves them into configs.
> With [https://cwiki.apache.org/confluence/display/SAMZA/SEP-14%3A+System+and+Stream+Descriptors], we can follow a similar pattern to use the TableDescriptors directly to materialize table related configurations. It buys as the following
>  * Consistency with the existing pattern 
>  * Removes the need of intermediate TableSpec
>  * Eliminates the dual responsibility of the TableProvider interface which currently exposes methods that partly used in planning phase and some used during runtime.
>  * Removes intermediate internal configurations that used as a placeholder to pass information to provider from descriptor such as changelog stream, replication factor etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)